Flask环境安装

环境:ubuntu 19.10

安装pip

先下载get-pip.py

$wget https://bootstrap.pypa.io/get-pip.py

运行以下代码:

$ sudo python3 get-pip.py

代码出错:

Traceback (most recent call last):
File "get-pip.py", line 22711, in
main()
File "get-pip.py", line 198, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File "/tmp/tmpnoviuj7c/pip.zip/pip/_internal/cli/main.py", line 10, in
File "/tmp/tmpnoviuj7c/pip.zip/pip/_internal/cli/autocompletion.py", line 9, in
File "/tmp/tmpnoviuj7c/pip.zip/pip/_internal/cli/main_parser.py", line 7, in
File "/tmp/tmpnoviuj7c/pip.zip/pip/_internal/cli/cmdoptions.py", line 19, in
ModuleNotFoundError: No module named 'distutils.util'

继续运行:

sudo apt-get install python3-distutils

你可能感兴趣的:(Flask环境安装)