Ubuntu16.04 安装python3.7和pip3

到官网下载源码

装个依赖包:apt-get install libffi-dev

三部曲

./configure

make

make install

但此时pip3可能不行,加个local,前提是前面三步都没报错

Ubuntu16.04 安装python3.7和pip3_第1张图片

错误参考:

https://askubuntu.com/questions/1025189/pip-is-not-working-importerror-no-module-named-pip-internal

 

https://github.com/pypa/pip/issues/4924

报这种错:

return Command 'lsb_release -a' returned non-zero exit status 1

运行 rm /usr/bin/lsb_release

 

转载于:https://www.cnblogs.com/willaty/p/10600420.html

你可能感兴趣的:(Ubuntu16.04 安装python3.7和pip3)