Linux 下安装 python PIP

5-13 6,320 views

@1-> 命令行下运行 wget https://bootstrap.pypa.io/get-pip.py ,没有wget的请先去安装wget

7

@2-> ~ python get-pip.py

8

@3-> ~ pip -V ,出现下图,证明安装成功!

9

碰到问题 zipimport.ZipImportError: can’t decompress data; zlib not available

https://blog.csdn.net/qq_38295166/article/details/79039834

假如要用yum安装

RHEL/CentOS 6:
   # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
RHEL/CentOS 7:
   # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
on RHEL 7 it is recommended to also enable the optional, extras, and HA repositories since EPEL packages may depend on packages from these repositories:
   # subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"  --enable "rhel-ha-for-rhel-*-server-rpms"

yum search python
yum install python34
yum install python34-pip

/usr/bin/pip3.4 --version

参考URL:https://fedoraproject.org/wiki/EPEL
pip文档:https://packaging.python.org/tutorials/installing-packages/

文档:https://packaging.python.org/tutorials/installing-packages/

python paramiko(SFTP) 相关文档

python paramiko SFTP文档地址: http://docs.paramiko.org/en/2.4/api/sftp.html import paramiko host = "THEHOST.com" #...

阅读全文

python 执行cmd命令并获取pid

process = subprocess.Popen('cmd命令') pid = process.pid print(pid)

阅读全文

适用于python 3+ pymsql 扩展类

适用于python 3+ pymsql 扩展类,包含增删改查 首先要安装pymsql , pip install pymysql document : https://pypi.org/project/PyMySQL/ github :https:/...

阅读全文

欢迎留言