安装rebotframework-sshlibrary库报错,没办法,试了几次,全是这个错误。
解决办法,pip install rebotframwork-sshlibrary后加上国内源
如:
C:\windows\system32>pip install robotframework-sshlibrary -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com
C:\windows\system32>pip install rebotframwork-sshlibrary
Collecting rebotframwork-sshlibrary
Could not find a version that satisfies the requirement rebotframwork-sshlibrary (from versions: )
No matching distribution found for rebotframwork-sshlibrary
C:\windows\system32>pip install robotframework-sshlibrary
Requirement already satisfied: robotframework-sshlibrary in c:\python27\lib\site-packages\robotframework_sshlibrary-3.1.1.dev1-py2.7.egg (3.1.1.dev1)
Requirement already satisfied: robotframework>=3.0 in c:\python27\lib\site-packages\robotframework-3.0-py2.7.egg (from robotframework-sshlibrary) (3.0)
Requirement already satisfied: paramiko>=1.15.3 in c:\python27\lib\site-packages\paramiko-2.4.1-py2.7.egg (from robotframework-sshlibrary) (2.4.1)
Collecting bcrypt>=3.1.3 (from paramiko>=1.15.3->robotframework-sshlibrary)
Using cached https://files.pythonhosted.org/packages/8e/96/023baaad7cf48be0eed2b53f5608c2a29c13f1ef9437496eaab55804e652/bcrypt-3.1.4-cp27-cp27m-win_amd64.whl
Collecting cryptography>=1.5 (from paramiko>=1.15.3->robotframework-sshlibrary)
Downloading https://files.pythonhosted.org/packages/b6/0a/540e33a9e26fd4db5c65b7d270317944e4705f34bb9c7266de9f6caeffe3/cryptography-2.3-cp27-cp27m-win_amd64.whl (1.3MB)
18% |██████ | 235kB 2.4kB/s eta 0:07:18Exception:
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pip\_internal\basecommand.py", line 141, in main
status = self.run(options, args)
File "c:\python27\lib\site-packages\pip\_internal\commands\install.py", line 299, in run
resolver.resolve(requirement_set)
File "c:\python27\lib\site-packages\pip\_internal\resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "c:\python27\lib\site-packages\pip\_internal\resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "c:\python27\lib\site-packages\pip\_internal\resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
File "c:\python27\lib\site-packages\pip\_internal\operations\prepare.py", line 283, in prepare_linked_requirement
progress_bar=self.progress_bar
File "c:\python27\lib\site-packages\pip\_internal\download.py", line 836, in unpack_url
progress_bar=progress_bar
File "c:\python27\lib\site-packages\pip\_internal\download.py", line 673, in unpack_http_url
progress_bar)
File "c:\python27\lib\site-packages\pip\_internal\download.py", line 897, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File "c:\python27\lib\site-packages\pip\_internal\download.py", line 617, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "c:\python27\lib\site-packages\pip\_internal\utils\hashes.py", line 48, in check_against_chunks
for chunk in chunks:
File "c:\python27\lib\site-packages\pip\_internal\download.py", line 585, in written_chunks
for chunk in chunks:
File "c:\python27\lib\site-packages\pip\_internal\utils\ui.py", line 159, in iter
for x in it:
File "c:\python27\lib\site-packages\pip\_internal\download.py", line 574, in resp_read
decode_content=False):
File "c:\python27\lib\site-packages\pip\_vendor\urllib3\response.py", line 465, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "c:\python27\lib\site-packages\pip\_vendor\urllib3\response.py", line 430, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "c:\python27\lib\contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "c:\python27\lib\site-packages\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.