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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM