python3.8与pip3安装

安装依赖:


sudo apt-get install zlib1g-dev libbz2-dev libssl-dev libncurses5-dev libsqlite3-dev libreadline-dev tk-dev libgdbm-dev libdb-dev libpcap-dev xz-utils libexpat1-dev liblzma-dev libffi-dev libc6-dev


1、官网下载python最新版本

2、tar -zxvf Python3.x.x.tgz

3、cd Python3.x.x

4、编译安装

执行这步是后面最好加上 --enable-optimizations 会自动安装pip3及优化配置

# ./configure --prefix=/usr/local/python3  --enable-optimizations # make # sudo make install
5、建立软连接


ln -sv 

6、检查版本


python3 -V
pip3 -V


ipython安装

pip3 install ipython

标签: python
2020.1.28   /   热度:167   /   分类: python

发表评论:

©地球仪的BLOG  |  Powered by Emlog