Feng’ Blog

Deepin15.9安装Python3.5.4以及pip3
deepin15.9安装Python3.5.4deepin官网: https://www.deepin.org/d...
扫描右侧二维码阅读全文
25
2019/02

Deepin15.9安装Python3.5.4以及pip3

deepin15.9安装Python3.5.4

deepin官网: https://www.deepin.org/
deepin15.9系统默认有python2.7和python3.6,由于odoo开发建议环境为3.5.4,那么我就需要在deepin上安装新的python3.5.4.

pc_banner_cn_desk.jpg

一、下载python3.5.4安装包

cd ~
wget https://www.python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz

二、安装一些依赖包

sudo apt-get install openssl
sudo apt-get install libssl-dev

三、解压

xz -d Python-3.5.4.tar.xz
tar xvf Python-3.5.4.tar

四、准备安装

cd Python-3.5.4/
./configure --prefix=/usr/local/python3.5  # 设置安装目录
make 
sudo make install

五、软连接

sudo ln -s /usr/local/python3.5/bin/python3 /usr/bin/python3.5

六、查看结果

python3.5 -V
# 显示结果为: Python 3.5.4

安装python3.5.4成功,同时。系统中的python2和python3.6也存在

七、安装pip3.5

sudo ln -s /usr/local/python3.5/bin/pip3.5 /usr/bin/pip3.5

测试:

pip3.5 install dicttoxml

更新pip至最新版本:

sudo python3.5 -m pip3.5 install --upgrade pip
pip3.5 -V  # 查看pip版本
Last modification:March 4th, 2019 at 09:39 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment