Linux之安装python

# yum install zlib-devel -y

# tar -xf Python-3.6.0
cd Python-3.6.0
# ./configure --prefix=/usr/local/python3.6# make && make install
# echo 'PATH=/usr/local/python3.6/bin:$PATH' >>/etc/profile
# tail -1 /etc/profile
PATH=/usr/local/python3.6/bin:$PATH
# source /etc/profile
posted @ 2017-03-17 22:35  qianxiamo  阅读(109)  评论(0编辑  收藏  举报