CentOS 7安装Python3.5
CentOS 7下安装Python3.5
•安装python3.5可能使用的依赖
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
•到python官网找到下载路径, 用wget下载
wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
•解压tgz包
tar -zxvf Python-3.5.1.tgz
•把python移到/usr/local下面
mv Python-3.5.1 /usr/local
•删除旧版本的python依赖
ll /usr/bin | grep python
rm -rf /usr/bin/python
•进入python目录
cd /usr/local/Python-3.5.1/
•配置
./configure
•编译 make
make
•编译,安装
make install
•删除旧的软链接,创建新的软链接到最新的python
rm -rf /usr/bin/python
ln -s /usr/local/bin/python3.5 /usr/bin/python
python -V
Enjoy your Python!
下面关于Python的文章您也可能喜欢,不妨看看:
Python 的详细介绍:请点这里
Python 的下载地址:请点这里
相关推荐
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17
Erick 2020-11-17
HeyShHeyou 2020-11-17
以梦为马不负韶华 2020-10-20
lhtzbj 2020-11-17
夜斗不是神 2020-11-17
pythonjw 2020-11-17
dingwun 2020-11-16
lhxxhl 2020-11-16
坚持是一种品质 2020-11-16
染血白衣 2020-11-16
huavhuahua 2020-11-20
meylovezn 2020-11-20
逍遥友 2020-11-20
weiiron 2020-11-16