我正在运行一个运行OpenWRT的Arduino Yun,这是Linux的变体。
在这台设备上,我已经安装了多个软件包,例如crypto,pycrypto,pyOpenSSL等。
当我运行pip install cryptography
时:
Collecting cryptography
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895850>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x768950f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x768951d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895650>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895a10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Could not find a version that satisfies the requirement cryptography (from versions: )
No matching distribution found for cryptography
当我运行pip show cryptography
时,它会返回一个空白。
当我运行pip show pip
(进行比较)时:
---
Metadata-Version: 1.1
Name: pip
Version: 8.1.2
...
当我运行pip search cryptography
时:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76d48690>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76d3dc90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi
^COperation cancelled by user
相比之下,我尝试了另一个包:pip install crypto
:
Requirement already satisfied (use --upgrade to upgrade): crypto in /usr/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): shellescape in /usr/lib/python2.7/site-packages (from crypto)
Requirement already satisfied (use --upgrade to upgrade): Naked in /usr/lib/python2.7/site-packages (from crypto)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/site-packages (from Naked->crypto)
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /usr/lib/python2.7/site-packages (from Naked->crypto)
知道这里发生了什么,以及如何成功安装加密技术?
答案 0 :(得分:0)
很明显你有网络问题。这不正常:
'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895850>: Failed to establish a new connection: [Errno -2] Name or service not known'