代码改变世界

Install python3

2019-07-25 15:37  divl  阅读(177)  评论(0编辑  收藏  举报
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
tar xf Python-3.7.4.tgz
cd Python-3.7.4/
yum install gcc zlib-devel libffi-devel openssl-devel
 ./configure  --prefix=/opt/python3
make
make install

ln -s /opt/python3/bin/python3 /usr/bin/python3
ln -s /opt/python3/bin/pip3 /usr/bin/pip3

pip3 install tornado

ll /opt/python3/lib/python3.7/site-packages