百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 热门文章 > 正文

银河麒麟系统离线安装pip和paramiko

bigegpt 2025-05-15 16:40 4 浏览

###### 参考网址:
https://blog.csdn.net/chrnhao/article/details/138717281 将python库下载到本地安装—Pypi官网wheel版本选择详解—小白详解版

###### 什么是whl文件:

whl 文件是一个Python软件包的分发格式,全称是Wheel文件。

Wheel是一个为Python设计的二进制包格式,它允许快速地安装Python库和应用程序。

Wheel文件本质上是ZIP格式的压缩文件,包含了用于安装软件包的所有文件。

使用Wheel文件安装软件包由于不需要编辑通常比使用源代码安装(如 .tar.gz 文件)要快。

##### 软件包的提供wheel文件的方式有两种:

一种是提供通用版本,通用版本一般只需要满足python的大版本条件,例如只要是python3就行不挑操作系统和系统架构。

一种是提供各个细分版本,细分版本会针对python版本,操作系统,系统使用的架构(例如Linux-X86和AMR64)的不同提供不同的wheel文件。

通用示例:
flask-3.0.3-py3-none-any.whl

细分示例:
numpy-1.26.4-cp310-cp310-win_amd64.whl

##### 1.Python 2.7.18通过源代码方式安装pip

## 1.1 从https://pypi.org/网站下载需要的安装包

[root@python-pip site-packages]# cd /Package/python_package/python_pip-2.7/

[root@python-pip python_pip-2.7]# ls -lrt

总用量 8008

-rw-r--r-- 1 root root 144064 7月 25 09:34
netmiko-3.1.0-py2.py3-none-any.whl

-rw-r--r-- 1 root root 213084 7月 25 09:34
paramiko-2.12.0-py2.py3-none-any.whl

-rw-r--r-- 1 root root 1522101 7月 25 09:34
pip-20.3.4-py2.py3-none-any.whl

-rw-r--r-- 1 root root 1530646 7月 25 10:10 pip-20.3.4.tar.gz

drwxr-xr-x 6 501 games 216 7月 25 10:13 pip-20.3.4

-rw-r--r-- 1 root root 59201 7月 25 10:35
bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl

-rw-r--r-- 1 root root 390480 7月 25 10:40
cffi-1.15.1-cp27-cp27mu-manylinux1_x86_64.whl

-rw-r--r-- 1 root root 118697 7月 25 10:42
pycparser-2.21-py2.py3-none-any.whl

-rw-r--r-- 1 root root 539785 7月 25 10:51
PyNaCl-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl

-rw-r--r-- 1 root root 2662439 7月 25 10:58
cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

-rw-r--r-- 1 root root 11223 7月 25 10:58
enum34-1.1.10-py2-none-any.whl

-rw-r--r-- 1 root root 18159 7月 25 10:59
ipaddress-1.0.23-py2.py3-none-any.whl

-rw-r--r-- 1 root root 964882 7月 25 10:59
PyNaCl-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl

## 1.1 解压pip安装包tar.gz

[root@python-pip python_package]# tar xf pip-20.3.4.tar.gz

[root@python-pip python_package]# cd pip-20.3.4/

[root@python-pip pip-20.3.4]# ls

AUTHORS.txt docs LICENSE.txt MANIFEST.in NEWS.rst PKG-INFO pyproject.toml README.rst setup.cfg setup.py src

[root@python-pip pip-20.3.4]# /usr/bin/python setup.py install

前端部分省略...........

creating build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

creating dist

creating 'dist/pip-20.3.4-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it

removing 'build/bdist.linux-x86_64/egg' (and everything under it)

Processing pip-20.3.4-py2.7.egg

creating /usr/lib/python2.7/site-packages/pip-20.3.4-py2.7.egg

Extracting pip-20.3.4-py2.7.egg to /usr/lib/python2.7/site-packages

Adding pip 20.3.4 to easy-install.pth file

Installing pip script to /usr/bin

Installing pip2.7 script to /usr/bin

Installing pip2 script to /usr/bin

Installed /usr/lib/python2.7/site-packages/pip-20.3.4-py2.7.egg

Processing dependencies for pip==20.3.4

Finished processing dependencies for pip==20.3.4

## 1.3 查看pip安装位置

[root@python-pip pip-20.3.4]# whereis pip

pip: /usr/bin/pip /usr/bin/pip2.7

## 按序安装paramiko的依赖包(pycparser、cffi、bcrypt、PyNaCl、ipaddress、enum34、cryptography),最后安装paramiko

[root@python-pip python_package]# /usr/bin/pip install pycparser-2.21-py2.py3-none-any.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./pycparser-2.21-py2.py3-none-any.whl

Installing collected packages: pycparser

Successfully installed pycparser-2.21

[root@python-pip python_package]# /usr/bin/pip install cffi-1.15.1-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./cffi-1.15.1-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi==1.15.1) (2.21)

Installing collected packages: cffi

Successfully installed cffi-1.15.1

[root@python-pip python_package]# /usr/bin/pip install bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: six>=1.4.1 in /usr/lib/python2.7/site-packages (from bcrypt==3.1.7) (1.15.0)

Requirement already satisfied: cffi>=1.1 in /usr/lib64/python2.7/site-packages (from bcrypt==3.1.7) (1.15.1)

Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.1->bcrypt==3.1.7) (2.21)

Installing collected packages: bcrypt

Successfully installed bcrypt-3.1.7

[root@python-pip python_package]# /usr/bin/pip install PyNaCl-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./PyNaCl-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from PyNaCl==1.4.0) (1.15.1)

Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from PyNaCl==1.4.0) (1.15.0)

Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->PyNaCl==1.4.0) (2.21)

Installing collected packages: PyNaCl

Attempting uninstall: PyNaCl

Found existing installation: PyNaCl 1.1.2

Uninstalling PyNaCl-1.1.2:

Successfully uninstalled PyNaCl-1.1.2

Successfully installed PyNaCl-1.4.0

[root@python-pip python_package]# /usr/bin/pip install ipaddress-1.0.23-py2.py3-none-any.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./ipaddress-1.0.23-py2.py3-none-any.whl

Installing collected packages: ipaddress

Successfully installed ipaddress-1.0.23

[root@python-pip python_package]# /usr/bin/pip install enum34-1.1.10-py2-none-any.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./enum34-1.1.10-py2-none-any.whl

Installing collected packages: enum34

Successfully installed enum34-1.1.10

[root@python-pip python_package]# /usr/bin/pip install cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: ipaddress; python_version < "3" in /usr/lib/python2.7/site-packages (from cryptography==3.3.2) (1.0.23)

Requirement already satisfied: six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography==3.3.2) (1.15.0)

Requirement already satisfied: enum34; python_version < "3" in /usr/lib/python2.7/site-packages (from cryptography==3.3.2) (1.1.10)

Requirement already satisfied: cffi>=1.12 in /usr/lib64/python2.7/site-packages (from cryptography==3.3.2) (1.15.1)

Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.12->cryptography==3.3.2) (2.21)

Installing collected packages: cryptography

Successfully installed cryptography-3.3.2

[root@python-pip python_package]# /usr/bin/pip install paramiko-2.12.0-py2.py3-none-any.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./paramiko-2.12.0-py2.py3-none-any.whl

Requirement already satisfied: bcrypt>=3.1.3 in /usr/lib64/python2.7/site-packages (from paramiko==2.12.0) (3.1.7)

Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from paramiko==2.12.0) (1.15.0)

Requirement already satisfied: pynacl>=1.0.1 in /usr/lib64/python2.7/site-packages (from paramiko==2.12.0) (1.4.0)

Requirement already satisfied: cryptography>=2.5 in /usr/lib64/python2.7/site-packages (from paramiko==2.12.0) (3.3.2)

Requirement already satisfied: cffi>=1.1 in /usr/lib64/python2.7/site-packages (from bcrypt>=3.1.3->paramiko==2.12.0) (1.15.1)

Requirement already satisfied: ipaddress; python_version < "3" in /usr/lib/python2.7/site-packages (from cryptography>=2.5->paramiko==2.12.0) (1.0.23)

Requirement already satisfied: enum34; python_version < "3" in /usr/lib/python2.7/site-packages (from cryptography>=2.5->paramiko==2.12.0) (1.1.10)

Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko==2.12.0) (2.21)

Installing collected packages: paramiko

Successfully installed paramiko-2.12.0

## 2. Python 3.7.9通过源代码方式安装pip

## 2.1 从https://pypi.org/网站下载需要的安装包

[root@python-pip site-packages]# cd /Package/python_package/python_pip-3.7/

[root@python-pip python_pip-2.7]# ls -lrt

总用量 13300

-rw-r--r-- 1 root root 232236 7月 25 09:34
netmiko-4.4.0-py3-none-any.whl

-rw-r--r-- 1 root root 225900 7月 25 09:34
paramiko-3.4.0-py3-none-any.whl

-rw-r--r-- 1 root root 1824406 7月 25 09:34
pip-24.1.2-py3-none-any.whl

-rw-r--r-- 1 root root 2132709 7月 25 10:10 pip-24.0.tar.gz

-rw-r--r-- 1 root root 11224 7月 25 10:58
enum34-1.1.10-py3-none-any.whl

-rw-r--r-- 1 root root 1530646 7月 25 14:43 pip-20.3.4.tar.gz

drwxr-xr-x 6 501 games 216 7月 25 14:44 pip-20.3.4

-rw-r--r-- 1 root root 2110226 7月 25 14:57 pip-24.0-py3-none-any.whl

-rw-r--r-- 1 root root 62337 7月 25 15:06
bcrypt-3.2.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

-rw-r--r-- 1 root root 61026 7月 25 15:06
bcrypt-3.2.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

-rw-r--r-- 1 root root 427911 7月 25 15:14
cffi-1.15.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

-rw-r--r-- 1 root root 118697 7月 25 15:20
pycparser-2.21-py2.py3-none-any.whl

-rw-r--r-- 1 root root 856678 7月 25 15:29
PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

-rw-r--r-- 1 root root 3998060 7月 25 15:47
cryptography-43.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

## 2.2 解压pip安装包tar.gz

[root@python-pip python_package]# tar xf pip-20.3.4.tar.gz

[root@python-pip python_package]# cd pip-20.3.4/

[root@python-pip pip-20.3.4]# ls

AUTHORS.txt docs LICENSE.txt MANIFEST.in NEWS.rst PKG-INFO pyproject.toml README.rst setup.cfg setup.py src

[root@python-pip pip-20.3.4]# /usr/bin/python3 setup.py install

省略一部分.....

creating build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO

copying src/pip.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

creating dist

creating 'dist/pip-20.3.4-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it

removing 'build/bdist.linux-x86_64/egg' (and everything under it)

Processing pip-20.3.4-py3.7.egg

creating /usr/local/lib/python3.7/site-packages/pip-20.3.4-py3.7.egg

Extracting pip-20.3.4-py3.7.egg to /usr/local/lib/python3.7/site-packages

Adding pip 20.3.4 to easy-install.pth file

Installing pip script to /usr/local/bin

Installing pip3 script to /usr/local/bin

Installing pip3.7 script to /usr/local/bin

Installed /usr/local/lib/python3.7/site-packages/pip-20.3.4-py3.7.egg

Processing dependencies for pip==20.3.4

Finished processing dependencies for pip==20.3.4

## 2.3 通过虚拟机环境升级pip到24.0(因Python 3.7.9最高支持到pip 24.0)

[root@python-pip python_pip-3.7]# cd /usr/local/lib/python3.7/site-packages/pip-24.0.dist-info

[root@python-pip pip-24.0.dist-info]# ls

AUTHORS.txt direct_url.json entry_points.txt INSTALLER LICENSE.txt METADATA RECORD REQUESTED top_level.txt WHEEL

[root@python-pip pip-24.0.dist-info]# /usr/bin/python3 -m venv scjgj-env

[root@python-pip pip-24.0.dist-info]# source scjgj-env/bin/activate

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip

pip pip2 pip2.7 pip3 pip3.10 pip3.7 pipewire pipewire-cli pipewire-monitor

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/pip-24.0-py3-none-any.whl

Processing /Package/python_package/python_pip-3.7/pip-24.0-py3-none-any.whl

Installing collected packages: pip

Attempting uninstall: pip

Found existing installation: pip 20.2.2

Uninstalling pip-20.2.2:

Successfully uninstalled pip-20.2.2

Successfully installed pip-24.0

## 2.4 通过虚拟环境来升级paramiko(备注:按顺序安装依赖包pycparser、cffi、bcrypt、PyNaCl、cryptography、paramiko,关于包的版本可以根据安装报错信息下载,或者查看官网文档指示。)

[root@python-pip python_pip-3.7]# cd /usr/local/lib/python3.7/site-packages/pip-24.0.dist-info

[root@python-pip pip-24.0.dist-info]# source scjgj-env/bin/activate

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip

pip pip2 pip2.7 pip3 pip3.10 pip3.7 pipewire pipewire-cli pipewire-monitor

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/pycparser-2.21-py2.py3-none-any.whl

Processing /Package/python_package/python_pip-3.7/pycparser-2.21-py2.py3-none-any.whl

Installing collected packages: pycparser

Successfully installed pycparser-2.21

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/cffi-1.15.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Processing /Package/python_package/python_pip-3.7/cffi-1.15.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Requirement already satisfied: pycparser in ./scjgj-env/lib/python3.7/site-packages (from cffi==1.15.1) (2.21)

Installing collected packages: cffi

Successfully installed cffi-1.15.1

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/bcrypt-3.2.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

Processing /Package/python_package/python_pip-3.7/bcrypt-3.2.2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

Requirement already satisfied: cffi>=1.1 in ./scjgj-env/lib/python3.7/site-packages (from bcrypt==3.2.2) (1.15.1)

Requirement already satisfied: pycparser in ./scjgj-env/lib/python3.7/site-packages (from cffi>=1.1->bcrypt==3.2.2) (2.21)

Installing collected packages: bcrypt

Successfully installed bcrypt-3.2.2

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

Processing /Package/python_package/python_pip-3.7/PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl

Requirement already satisfied: cffi>=1.4.1 in ./scjgj-env/lib/python3.7/site-packages (from PyNaCl==1.5.0) (1.15.1)

Requirement already satisfied: pycparser in ./scjgj-env/lib/python3.7/site-packages (from cffi>=1.4.1->PyNaCl==1.5.0) (2.21)

Installing collected packages: PyNaCl

Successfully installed PyNaCl-1.5.0

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/cryptography-43.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Processing /Package/python_package/python_pip-3.7/cryptography-43.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Requirement already satisfied: cffi>=1.12; platform_python_implementation != "PyPy" in ./scjgj-env/lib/python3.7/site-packages (from cryptography==43.0.0) (1.15.1)

Requirement already satisfied: pycparser in ./scjgj-env/lib/python3.7/site-packages (from cffi>=1.12; platform_python_implementation != "PyPy"->cryptography==43.0.0) (2.21)

Installing collected packages: cryptography

Successfully installed cryptography-43.0.0

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 install /Package/python_package/python_pip-3.7/paramiko-3.4.0-py3-none-any.whl

Processing /Package/python_package/python_pip-3.7/paramiko-3.4.0-py3-none-any.whl

Requirement already satisfied: cryptography>=3.3 in ./scjgj-env/lib/python3.7/site-packages (from paramiko==3.4.0) (43.0.0)

Requirement already satisfied: bcrypt>=3.2 in ./scjgj-env/lib/python3.7/site-packages (from paramiko==3.4.0) (3.2.2)

Requirement already satisfied: pynacl>=1.5 in ./scjgj-env/lib/python3.7/site-packages (from paramiko==3.4.0) (1.5.0)

Requirement already satisfied: cffi>=1.12; platform_python_implementation != "PyPy" in ./scjgj-env/lib/python3.7/site-packages (from cryptography>=3.3->paramiko==3.4.0) (1.15.1)

Requirement already satisfied: pycparser in ./scjgj-env/lib/python3.7/site-packages (from cffi>=1.12; platform_python_implementation != "PyPy"->cryptography>=3.3->paramiko==3.4.0) (2.21)

Installing collected packages: paramiko

Successfully installed paramiko-3.4.0

查看升级版本

(scjgj-env) [root@python-pip pip-24.0.dist-info]# pip3 list|grep paramiko

paramiko 3.4.0

# package安装完成后,退出虚拟环境

(scjgj-env) [root@test pip-24.0.dist-info]# deactivate

[root@test pip-24.0.dist-info]#

测试paramiko安装是否成功

[root@scjgj-n-zab python_pip-3.7]# /usr/bin/python3

Python 3.7.9 (default, Mar 2 2021, 02:43:11)

[GCC 7.3.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import paramiko

#### 3.安装过程中遇到的错误信息

## 3.1 安装paramiko错误信息

[root@python-pip python_package]# /usr/bin/pip install paramiko-2.12.0-py2.py3-none-any.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./paramiko-2.12.0-py2.py3-none-any.whl

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd0105fe90>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/bcrypt/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd0105f2d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/bcrypt/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd01064810>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/bcrypt/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd01064550>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/bcrypt/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fcd010649d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/bcrypt/

ERROR: Could not find a version that satisfies the requirement bcrypt>=3.1.3 (from paramiko==2.12.0) (from versions: none)

ERROR: No matching distribution found for bcrypt>=3.1.3 (from paramiko==2.12.0)

[root@python-pip python_package]# /usr/bin/pip install bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: six>=1.4.1 in /usr/lib/python2.7/site-packages (from bcrypt==3.1.7) (1.15.0)

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9dbc279c10>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/cffi/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9dbc21f190>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/cffi/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9dbc21f490>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/cffi/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9dbc21f790>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/cffi/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9dbc21fa90>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/cffi/

ERROR: Could not find a version that satisfies the requirement cffi>=1.1 (from bcrypt==3.1.7) (from versions: none)

ERROR: No matching distribution found for cffi>=1.1 (from bcrypt==3.1.7)

[root@python-pip python_package]# /usr/bin/pip install cffi-1.15.1-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./cffi-1.15.1-cp27-cp27mu-manylinux1_x86_64.whl

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9e8b89b550>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pycparser/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9e8b89bd90>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pycparser/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9e8b840150>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pycparser/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9e8b840450>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pycparser/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9e8b840750>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pycparser/

ERROR: Could not find a version that satisfies the requirement pycparser (from cffi==1.15.1) (from versions: none)

ERROR: No matching distribution found for pycparser (from cffi==1.15.1)

[root@python-pip python_package]# /usr/bin/pip install paramiko-2.12.0-py2.py3-none-any.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./paramiko-2.12.0-py2.py3-none-any.whl

Requirement already satisfied: bcrypt>=3.1.3 in /usr/lib64/python2.7/site-packages (from paramiko==2.12.0) (3.1.7)

Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from paramiko==2.12.0) (1.15.0)

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e013c6e10>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pynacl/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e013c6510>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pynacl/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e013f1a10>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pynacl/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e013d3cd0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pynacl/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f5e013d3250>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/pynacl/

ERROR: Could not find a version that satisfies the requirement pynacl>=1.0.1 (from paramiko==2.12.0) (from versions: none)

ERROR: No matching distribution found for pynacl>=1.0.1 (from paramiko==2.12.0)

[root@python-pip python_package]# /usr/bin/pip install cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6117531790>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/ipaddress/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6117594dd0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/ipaddress/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f61175949d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/ipaddress/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6117594f50>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/ipaddress/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f61175947d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/ipaddress/

ERROR: Could not find a version that satisfies the requirement ipaddress; python_version < "3" (from cryptography==3.3.2) (from versions: none)

ERROR: No matching distribution found for ipaddress; python_version < "3" (from cryptography==3.3.2)

[root@python-pip python_package]# /usr/bin/pip install cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Processing ./cryptography-3.3.2-cp27-cp27mu-manylinux1_x86_64.whl

Requirement already satisfied: ipaddress; python_version < "3" in /usr/lib/python2.7/site-packages (from cryptography==3.3.2) (1.0.23)

Requirement already satisfied: six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography==3.3.2) (1.15.0)

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fdaec1907d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/enum34/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fdaec1903d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/enum34/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fdaec190b50>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/enum34/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fdaec190050>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/enum34/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fdaec1905d0>: Failed to establish a new connection: [Errno -2] \xe6\x9c\xaa\xe7\x9f\xa5\xe7\x9a\x84\xe5\x90\x8d\xe7\xa7\xb0\xe6\x88\x96\xe6\x9c\x8d\xe5\x8a\xa1',)': /simple/enum34/

ERROR: Could not find a version that satisfies the requirement enum34; python_version < "3" (from cryptography==3.3.2) (from versions: none)

ERROR: No matching distribution found for enum34; python_version < "3" (from cryptography==3.3.2)

## 3.2 导入paramiko错误信息

[root@python-pip python_package]# /usr/bin/python

Python 2.7.18 (default, Mar 14 2021, 14:54:03)

[GCC 7.3.0] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import paramiko

/usr/lib/python2.7/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.

from cryptography.hazmat.backends import default_backend

>>> from cryptography.hazmat.backends import default_backend

>>> import paramiko

## 3.3 python3安装源代码pip报错信息

root@python-pip pip-24.0]# /usr/bin/python3 setup.py install

running install

running bdist_egg

running egg_info

creating UNKNOWN.egg-info

writing UNKNOWN.egg-info/PKG-INFO

writing dependency_links to UNKNOWN.egg-info/dependency_links.txt

writing entry points to UNKNOWN.egg-info/entry_points.txt

writing top-level names to UNKNOWN.egg-info/top_level.txt

writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'

reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

warning: no files found matching 'src/pip/_vendor/pyparsing/diagram/template.jinja2'

warning: no files found matching 'docs/docutils.conf'

warning: no previously-included files found matching '.git-blame-ignore-revs'

warning: no previously-included files found matching '.coveragerc'

warning: no previously-included files found matching '.mailmap'

warning: no previously-included files found matching '.appveyor.yml'

warning: no previously-included files found matching '.readthedocs.yml'

warning: no previously-included files found matching '.pre-commit-config.yaml'

warning: no previously-included files found matching '.readthedocs-custom-redirects.yml'

warning: no previously-included files found matching 'tox.ini'

warning: no previously-included files found matching 'noxfile.py'

warning: no files found matching '*.css' under directory 'docs'

warning: no previously-included files found matching 'src/pip/_vendor/six'

warning: no previously-included files found matching 'src/pip/_vendor/six/moves'

warning: no previously-included files matching '*.pyi' found under directory 'src/pip/_vendor'

no previously-included directories found matching '.github'

no previously-included directories found matching 'docs/build'

no previously-included directories found matching 'news'

no previously-included directories found matching 'tasks'

no previously-included directories found matching 'tests'

no previously-included directories found matching 'tools'

writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'

installing library code to build/bdist.linux-x86_64/egg

running install_lib

warning: install_lib: 'build/lib' does not exist -- no Python modules to install

creating build

creating build/bdist.linux-x86_64

creating build/bdist.linux-x86_64/egg

creating build/bdist.linux-x86_64/egg/EGG-INFO

copying UNKNOWN.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO

copying UNKNOWN.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying UNKNOWN.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying UNKNOWN.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

copying UNKNOWN.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO

zip_safe flag not set; analyzing archive contents...

creating dist

creating 'dist/UNKNOWN-0.0.0-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it

removing 'build/bdist.linux-x86_64/egg' (and everything under it)

Processing UNKNOWN-0.0.0-py3.7.egg

Removing /usr/local/lib/python3.7/site-packages/UNKNOWN-0.0.0-py3.7.egg

Copying UNKNOWN-0.0.0-py3.7.egg to /usr/local/lib/python3.7/site-packages

UNKNOWN 0.0.0 is already the active version in easy-install.pth

Installing pip script to /usr/local/bin

Installing pip3 script to /usr/local/bin

Installing pip3.7 script to /usr/local/bin

Installed /usr/local/lib/python3.7/site-packages/UNKNOWN-0.0.0-py3.7.egg

Processing dependencies for UNKNOWN==0.0.0

Finished processing dependencies for UNKNOWN==0.0.0

解决

[root@python-pip pip-24.0]# /usr/bin/python3 setup.py build

running build

[root@python-pip pip-24.0]# /usr/bin/python3 setup.py clean

running clean

## 3.4 python3.7升级paramiko3.4.0报错信息

[root@python-pip python_pip-3.7]# /usr/local/bin/pip3 install paramiko-3.4.0-py3-none-any.whl

Processing ./paramiko-3.4.0-py3-none-any.whl

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<
pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6f28b99f90>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/bcrypt/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<
pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6f28ba34d0>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/bcrypt/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<
pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6f28b98890>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/bcrypt/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<
pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6f28b8d390>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/bcrypt/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<
pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f6f28ba3990>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/bcrypt/

INFO: pip is looking at multiple versions of paramiko to determine which version is compatible with other requirements. This could take a while.

ERROR: Could not find a version that satisfies the requirement bcrypt>=3.2 (from paramiko) (from versions: none)

ERROR: No matching distribution found for bcrypt>=3.2

相关推荐

得物可观测平台架构升级:基于GreptimeDB的全新监控体系实践

一、摘要在前端可观测分析场景中,需要实时观测并处理多地、多环境的运行情况,以保障Web应用和移动端的可用性与性能。传统方案往往依赖代理Agent→消息队列→流计算引擎→OLAP存储...

warm-flow新春版:网关直连和流程图重构

本期主要解决了网关直连和流程图重构,可以自此之后可支持各种复杂的网关混合、多网关直连使用。-新增Ruoyi-Vue-Plus优秀开源集成案例更新日志[feat]导入、导出和保存等新增json格式支持...

扣子空间体验报告

在数字化时代,智能工具的应用正不断拓展到我们工作和生活的各个角落。从任务规划到项目执行,再到任务管理,作者深入探讨了这款工具在不同场景下的表现和潜力。通过具体的应用实例,文章展示了扣子空间如何帮助用户...

spider-flow:开源的可视化方式定义爬虫方案

spider-flow简介spider-flow是一个爬虫平台,以可视化推拽方式定义爬取流程,无需代码即可实现一个爬虫服务。spider-flow特性支持css选择器、正则提取支持JSON/XML格式...

solon-flow 你好世界!

solon-flow是一个基础级的流处理引擎(可用于业务规则、决策处理、计算编排、流程审批等......)。提供有“开放式”驱动定制支持,像jdbc有mysql或pgsql等驱动,可...

新一代开源爬虫平台:SpiderFlow

SpiderFlow:新一代爬虫平台,以图形化方式定义爬虫流程,不写代码即可完成爬虫。-精选真开源,释放新价值。概览Spider-Flow是一个开源的、面向所有用户的Web端爬虫构建平台,它使用Ja...

通过 SQL 训练机器学习模型的引擎

关注薪资待遇的同学应该知道,机器学习相关的岗位工资普遍偏高啊。同时随着各种通用机器学习框架的出现,机器学习的门槛也在逐渐降低,训练一个简单的机器学习模型变得不那么难。但是不得不承认对于一些数据相关的工...

鼠须管输入法rime for Mac

鼠须管输入法forMac是一款十分新颖的跨平台输入法软件,全名是中州韵输入法引擎,鼠须管输入法mac版不仅仅是一个输入法,而是一个输入法算法框架。Rime的基础架构十分精良,一套算法支持了拼音、...

Go语言 1.20 版本正式发布:新版详细介绍

Go1.20简介最新的Go版本1.20在Go1.19发布六个月后发布。它的大部分更改都在工具链、运行时和库的实现中。一如既往,该版本保持了Go1的兼容性承诺。我们期望几乎所...

iOS 10平台SpriteKit新特性之Tile Maps(上)

简介苹果公司在WWDC2016大会上向人们展示了一大批新的好东西。其中之一就是SpriteKitTileEditor。这款工具易于上手,而且看起来速度特别快。在本教程中,你将了解关于TileE...

程序员简历例句—范例Java、Python、C++模板

个人简介通用简介:有良好的代码风格,通过添加注释提高代码可读性,注重代码质量,研读过XXX,XXX等多个开源项目源码从而学习增强代码的健壮性与扩展性。具备良好的代码编程习惯及文档编写能力,参与多个高...

Telerik UI for iOS Q3 2015正式发布

近日,TelerikUIforiOS正式发布了Q32015。新版本新增对XCode7、Swift2.0和iOS9的支持,同时还新增了对数轴、不连续的日期时间轴等;改进TKDataPoin...

ios使用ijkplayer+nginx进行视频直播

上两节,我们讲到使用nginx和ngixn的rtmp模块搭建直播的服务器,接着我们讲解了在Android使用ijkplayer来作为我们的视频直播播放器,整个过程中,需要注意的就是ijlplayer编...

IOS技术分享|iOS快速生成开发文档(一)

前言对于开发人员而言,文档的作用不言而喻。文档不仅可以提高软件开发效率,还能便于以后的软件开发、使用和维护。本文主要讲述Objective-C快速生成开发文档工具appledoc。简介apple...

macOS下配置VS Code C++开发环境

本文介绍在苹果macOS操作系统下,配置VisualStudioCode的C/C++开发环境的过程,本环境使用Clang/LLVM编译器和调试器。一、前置条件本文默认前置条件是,您的开发设备已...