美文网首页
CentOS 安装 pip3

CentOS 安装 pip3

作者: jerryyyq | 来源:发表于2020-03-27 17:26 被阅读0次

cd /srv
wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2u.tar.gz
tar -zxvf OpenSSL_1_0_2u.tar.gz
cd OpenSSL_1_0_2u
./config -fPIC shared
make
make install

cd ../
echo "/usr/local/ssl/lib" > /etc/ld.so.conf.d/openssl_102u.conf
ldconfig

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
cd Python-3.7.0
./configure --with-openssl=/srv/OpenSSL_1_0_2u LDFLAGS=-L/srv/openssl-OpenSSL_1_0_2u
make
make install

ln -s /usr/local/bin/pip3.7 /usr/bin/pip3
ln -s /usr/local/bin/python3 /usr/bin/python3

mkdir ~/.pip/
vi ~/.pip/pip.conf

[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
trusted-host = pypi.tuna.tsinghua.edu.cn

相关文章

网友评论

      本文标题:CentOS 安装 pip3

      本文链接:https://www.haomeiwen.com/subject/agbcuhtx.html