Windows:
python各个版本下载链接:
Python Releases for Windows | Python.org
python3.4以上默认安装了pip
pip使用点记录:
1、如果使用了VPN软件,使用pip提示下载失败时,可以先关掉尝试看看问题有没有解决
2、pip源更换源:
阿里:pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
清华:Simple Index
还有一种办法,应该是临时有效:pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip search:
先安装search工具 :pip install pip-search; pip_search fcntl
linux
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
yum install libffi-devel -y
cd #回到用户目录
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
mkdir /usr/local/python3 #创建编译安装目录
cd Python-3.7.0
./configure --prefix=/usr/local/python3
make && make install
在PATH目录下面创建软链接
python3 -V
pip3 -V