6.8K2
举报
今天在腾讯云服务器上安装了python3,又学到的知识。
cd /home
wget http://cdn.npm.taobao.org/dist/python/3.7.4/Python-3.7.4.tgz
复制
tar -zxvf Python-3.7.4.tgz
复制
yum install -y gcc
yum install -y zlib*
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 libffi-devel
复制
cd Python-3.6.5/
复制
./configure --prefix=/usr/local/python3 --with-ssl
复制
make
复制
make install
复制
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
复制
pip3 install XXXXX