ubuntu14.04 安装python3.6

(1)更新软件

apt-get update

(2)下载python

cd /usr/local/src

wget https://www.python.org/ftp/python/3.6.1/Python3.6.1.tgz

tar xvf Python-3.6.1.tgz

cd Python-3.6.1

(3)编译安装

./configure

make all

make install

make clean

make distclean

rm /usr/bin/python

ln -s /usr/local/bin/python3.6 /usr/bin/python

软连接:路径要写全,并且不要忘了路径最前面的/

(4)安装python库

pip install requests

django

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注