首页 > 其他 > 详细

Rhel7.2离线安装setuptools、pip

时间:2021-04-10 22:53:49      阅读:34      评论:0      收藏:0      [点我收藏+]

操作系统版本

 [root@ze11 ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.2 (Maipo) 

Python版本

[root@ze11 ~]# python -V
Python 2.7.5 

setuptools安装

1 下载:
2 https://files.pythonhosted.org/packages/24/49/7f567b628e14ee004938eec256cffeae7097db9e28576911ae7b84d2ff07/setuptools-41.1.0.post1.tar.gz
3 
4 解压安装:
5 tar -zxf setuptools-41.1.0.post1.tar.gz
6 cd setuptools-41.1.0.post1/
7 python setup.py install

 

pip离线安装

 

下载:
https://files.pythonhosted.org/packages/aa/1a/62fb0b95b1572c76dbc3cc31124a8b6866cbe9139eb7659ac7349457cf7c/pip-19.2.2.tar.gz

解压安装:
tar -zxf pip-19.2.2.tar.gz
cd pip-19.2.2/
python setup.py install

 

paramiko安装

 

 

[root@ze11 pip-19.2.2]# pip install paramiko
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 wont be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting paramiko
  Downloading https://files.pythonhosted.org/packages/95/19/124e9287b43e6ff3ebb9cdea3e5e8e88475a873c05ccdf8b7e20d2c4201e/paramiko-2.7.2-py2.py3-none-any.whl (206kB)
     |████████████████████████████████| 215kB 1.5MB/s 
Collecting bcrypt>=3.1.3 (from paramiko)
  Downloading https://files.pythonhosted.org/packages/ad/36/9a0227d048e98409f012570f7bef8a8c2373b9c9c5dfbf82963cbae05ede/bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl (59kB)
     |████████████████████████████████| 61kB 7.5MB/s 
Collecting cryptography>=2.5 (from paramiko)
  Downloading https://files.pythonhosted.org/packages/bf/a0/c630e9e3b7e7ea2492db1ca47ef7f741ef1a09f19c6642ef1a16ce996d9b/cryptography-3.3.2-cp27-cp27mu-manylinux2010_x86_64.whl (2.6MB)
     |████████████████████████████████| 2.6MB 3.0MB/s 
Collecting pynacl>=1.0.1 (from paramiko)
  Downloading https://files.pythonhosted.org/packages/de/63/bb36279da38df643c6df3a8a389f29a6ff4a8854468f4c9b9d925b27d57d/PyNaCl-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl (964kB)
     |████████████████████████████████| 972kB 4.1MB/s 
Collecting six>=1.4.1 (from bcrypt>=3.1.3->paramiko)
  Downloading https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting cffi>=1.1 (from bcrypt>=3.1.3->paramiko)
  Downloading https://files.pythonhosted.org/packages/ab/a7/1df1dcd222c9a35d2d0c4c123bd55a533ed2d07b09909ad085829deea4d6/cffi-1.14.5-cp27-cp27mu-manylinux1_x86_64.whl (389kB)
     |████████████████████████████████| 399kB 2.1MB/s 
Collecting enum34; python_version < "3" (from cryptography>=2.5->paramiko)
  Downloading https://files.pythonhosted.org/packages/6f/2c/a9386903ece2ea85e9807e0e062174dc26fdce8b05f216d00491be29fad5/enum34-1.1.10-py2-none-any.whl
Collecting ipaddress; python_version < "3" (from cryptography>=2.5->paramiko)
  Downloading https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.1->bcrypt>=3.1.3->paramiko)
  Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)
     |████████████████████████████████| 112kB 8.2MB/s 
Installing collected packages: six, pycparser, cffi, bcrypt, enum34, ipaddress, cryptography, pynacl, paramiko
Successfully installed bcrypt-3.1.7 cffi-1.14.5 cryptography-3.3.2 enum34-1.1.10 ipaddress-1.0.23 paramiko-2.7.2 pycparser-2.20 pynacl-1.4.0 six-1.15.0
[root@ze11 pip-19.2.2]# 

 

Rhel7.2离线安装setuptools、pip

原文:https://www.cnblogs.com/helon/p/14641442.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!