Python 2.7-导入graphlab时出错

时间:2018-06-30 12:55:39

标签: python python-2.7 machine-learning urllib graphlab

我正在尝试将graphlab导入为我正在修读的Coursera课程的一部分。

我已经安装了conda。

当我导入graphlab时,会弹出一个警报,提示未找到某些dll。

这是我的跑步。

Python 2.7.13 |Continuum Analytics, Inc.| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import graphlab

ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found.

1. Ensure user account has write permission to C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\site-packages\graphlab
2. Run graphlab.get_dependencies() to download and install them.
3. Restart Python and import graphlab again.

By running the above function, you agree to the following licenses.

* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING

如上所述,我需要运行graphlab.get_dependencies()

因此,在运行它时,将引发以下错误。

>>> graphlab.get_dependencies()

By running this function, you agree to the following licenses.

* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING

Downloading xz.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\site-packages\graphlab\dependencies.py", line 33, in get_dependencies
    (xzarchive_file, xzheaders) = urllib.urlretrieve('http://tukaani.org/xz/xz-5.2.1-windows.zip')
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 364, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 377, in http_error
    result = method(url, fp, errcode, errmsg, headers)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 673, in http_error_301
    return self.http_error_302(url, fp, errcode, errmsg, headers, data)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 642, in http_error_302
    headers, data)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 669, in redirect_internal
    return self.open(newurl)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\urllib.py", line 443, in open_https
    h.endheaders(data)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\httplib.py", line 882, in _send_output
    self.send(msg)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\httplib.py", line 844, in send
    self.connect()
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\httplib.py", line 1263, in connect
    server_hostname=server_hostname)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\ssl.py", line 363, in wrap_socket
    _context=self)
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\ssl.py", line 611, in __init__
    self.do_handshake()
  File "C:\Users\MyUserName\AppData\Local\conda\conda\envs\mlfoundations\lib\ssl.py", line 840, in do_handshake
    self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:661)

0 个答案:

没有答案