Ubuntu16.04 安装python3.7和pip3

到官网下载源码

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

三部曲

./configure

make

make install

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

错误参考:

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

 

posted on 2019-03-26 15:25  willaty  阅读(3292)  评论(0编辑  收藏  举报

导航