pip安装失败
Collecting paramiko
Using cached https://files.pythonhosted.org/packages/ad/50/8792484502c8141c20c996b802fefa8435a9c018a2bb440a06b172782118/paramiko-3.4.0-py3-none-any.whl
Collecting pynacl>=1.5 (from paramiko)
Downloading https://files.pythonhosted.org/packages/a7/22/27582568be639dfe22ddb3902225f91f2f17ceff88ce80e4db396c8986da/PyNaCl-1.5.0.tar.gz (3.4MB)
18% |██████ | 624kB 7.9kB/s eta 0:05:50Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 302, in _error_catcher
yield
File "/usr/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl/urllib3/response.py", line 384, in read
data = self._fp.read(amt)
失败了 再指定安装源
pip3 install paramiko -i https://pypi.doubanio.com/simple/
还是失败了
wu:~$ pip3 install paramiko -i https://pypi.doubanio.com/simple/
Collecting paramiko
Downloading https://mirrors.cloud.tencent.com/pypi/packages/ad/50/8792484502c8141c20c996b802fefa8435a9c018a2bb440a06b172782118/paramiko-3.4.0-py3-none-any.whl (225kB)
100% |████████████████████████████████| 235kB 2.8MB/s
Collecting cryptography>=3.3 (from paramiko)
Downloading https://mirrors.cloud.tencent.com/pypi/packages/f7/80/04cc7637238b78f8e7354900817135c5a23cf66dfb3f3a216c6d630d6833/cryptography-40.0.2.tar.gz (625kB)
100% |████████████████████████████████| 634kB 2.8MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-tba6z935/cryptography/setup.py", line 18, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
更新一下pip
wu:~$ pip3 install --upgrade pip3
Collecting pip3
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f656ebf02b0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pip3/
Could not find a version that satisfies the requirement pip3 (from versions: )
No matching distribution found for pip3
还是失败
指定一下pip更新源
pip3 install -U pip -i https://repo.huaweicloud.com/repository/pypi/simple
成功了
Collecting pip
Downloading https://repo.huaweicloud.com/repository/pypi/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 1.5MB/s
Installing collected packages: pip
Successfully installed pip-21.3.1
再指定paramiko的安装源
pip3 install paramiko -i https://pypi.doubanio.com/simple/
成功了 、
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting paramiko
Using cached https://mirrors.cloud.tencent.com/pypi/packages/ad/50/8792484502c8141c20c996b802fefa8435a9c018a2bb440a06b172782118/paramiko-3.4.0-py3-none-any.whl (225 kB)
Collecting pynacl>=1.5
Downloading https://mirrors.cloud.tencent.com/pypi/packages/ee/87/f1bb6a595f14a327e8285b9eb54d41fef76c585a0edef0a45f6fc95de125/PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (856 kB)
|████████████████████████████████| 856 kB 2.1 MB/s
Collecting bcrypt>=3.2
Downloading https://mirrors.cloud.tencent.com/pypi/packages/7d/50/e683d8418974a602ba40899c8a5c38b3decaf5a4d36c32fc65dce454d8a8/bcrypt-4.0.1-cp36-abi3-manylinux_2_24_x86_64.whl (593 kB)
|████████████████████████████████| 593 kB 3.7 MB/s
Collecting cryptography>=3.3
Downloading https://mirrors.cloud.tencent.com/pypi/packages/9c/1b/30faebcef9be2df5728a8086b8fc15fff92364fe114fb207b70cd7c81329/cryptography-40.0.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB)
|████████████████████████████████| 3.7 MB 1.3 MB/s
Collecting cffi>=1.12
Downloading https://mirrors.cloud.tencent.com/pypi/packages/3a/12/d6066828014b9ccb2bbb8e1d9dc28872d20669b65aeb4a86806a0757813f/cffi-1.15.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (402 kB)
|████████████████████████████████| 402 kB 2.3 MB/s
Collecting pycparser
Downloading https://mirrors.cloud.tencent.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
|████████████████████████████████| 118 kB 4.4 MB/s
Installing collected packages: pycparser, cffi, pynacl, cryptography, bcrypt, paramiko
Successfully installed bcrypt-4.0.1 cffi-1.15.1 cryptography-40.0.2 paramiko-3.4.0 pycparser-2.21 pynacl-1.5.0
好像有点小插曲 不重要
Requirement already satisfied: paramiko in ./.local/lib/python3.6/site-packages (3.4.0)
Requirement already satisfied: bcrypt>=3.2 in ./.local/lib/python3.6/site-packages (from paramiko) (4.0.1)
Requirement already satisfied: pynacl>=1.5 in ./.local/lib/python3.6/site-packages (from paramiko) (1.5.0)
Requirement already satisfied: cryptography>=3.3 in ./.local/lib/python3.6/site-packages (from paramiko) (40.0.2)
Requirement already satisfied: cffi>=1.12 in ./.local/lib/python3.6/site-packages (from cryptography>=3.3->paramiko) (1.15.1)
Requirement already satisfied: pycparser in ./.local/lib/python3.6/site-packages (from cffi>=1.12->cryptography>=3.3->paramiko) (2.21)
可以使用最重要 不是吗