pip3 --version
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.7) 得到3.7对应的pip
此时可能会报错
File "/usr/local/lib/python3.7/dist-packages/flask/__init__.py", line 1, in <module>
from markupsafe import escape
ModuleNotFoundError: No module named 'markupsafe'
Python 3.8 removed the "linux_distribution()"function from the platform module. It is replaced by the equivalent in the "distro" module (distro is not built-in to Python and must be installed via pip).
If you're unable to change the source code, you can try downgrading your Python to Python 3.7
③ 一些可能报错及解决:
ImportError: cannot import name 'sysconfig' from 'distutils' --> sudo apt-get install python3.x-distutils
ModuleNotFoundError: No module named 'distutils.util' --> sudo apt-get install python3.x-distutils