pip安装wechatSougou框架时报错
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/commands/install.py", line 318, in run
resolver.resolve(requirement_set)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/operations/prepare.py", line 283, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/download.py", line 836, in unpack_url
progress_bar=progress_bar
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/download.py", line 673, in unpack_http_url
progress_bar)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/download.py", line 897, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/download.py", line 617, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/utils/hashes.py", line 48, in check_against_chunks
for chunk in chunks:
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/download.py", line 585, in written_chunks
for chunk in chunks:
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/utils/ui.py", line 159, in iter
for x in it:
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_internal/download.py", line 574, in resp_read
decode_content=False):
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_vendor/urllib3/response.py", line 465, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_vendor/urllib3/response.py", line 430, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg/pip/_vendor/urllib3/response.py", line 345, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决问题:管理员权限,超时设置
rxxdeMac:~ rxx$ sudo pip --default-timeout=100 install wechatsogou --upgrade
网友评论