标签:pip3 bzip2 bzip read python zip readline lib 需求
1.安装依赖
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
2.下载python3源码包
tar -xf Python-3.7.4.tgz ./configure --prefix=/usr/local/python --enable-optimizations make install #他会自动编译下载需求的库
3.软链接
ln -s /usr/local/python/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
4.验证
python3 -v
./pip3 -V
标签:pip3 bzip2 bzip read python zip readline lib 需求
原文地址:https://www.cnblogs.com/jianxgin/p/11765541.html