到官网下载源码
装个依赖包: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