我在Windows 10上运行Anaconda Python 2.7,并且在运行Graphlab的get_dependencies()函数时遇到此错误:
>>> gl.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:\Continuum\anaconda3\envs\gl-env\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:\Continuum\anaconda3\envs\gl-env\lib\urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "C:\Continuum\anaconda3\envs\gl-env\lib\urllib.py", line 245, in retrieve
fp = self.open(url, data)
File "C:\Continuum\anaconda3\envs\gl-env\lib\urllib.py", line 213, in open
return getattr(self, name)(url)
File "C:\Continuum\anaconda3\envs\gl-env\lib\urllib.py", line 350, in open_http
h.endheaders(data)
File "C:\Continuum\anaconda3\envs\gl-env\lib\httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "C:\Continuum\anaconda3\envs\gl-env\lib\httplib.py", line 897, in _send_output
self.send(msg)
File "C:\Continuum\anaconda3\envs\gl-env\lib\httplib.py", line 859, in send
self.connect()
File "C:\Continuum\anaconda3\envs\gl-env\lib\httplib.py", line 836, in connect
self.timeout, self.source_address)
File "C:\Continuum\anaconda3\envs\gl-env\lib\socket.py", line 557, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno 11001] getaddrinfo failed
我尝试了此过程,无论是否在环境变量定义器的as系统变量中指定了代理服务器。是什么原因导致该问题,以及如何解决该问题?