如何在ubuntu中设置运行python为python3.6?

How to set running python as pyhton3.6 in ubuntu?

在安装项目需求文件 (pip install -r requirements.txt) 时,终端出现此错误:

css-html-js-minify requires Python '>=3.6' but the running Python is 2.7.12

我认为问题出在库“css-html-js-minify”,它需要 Python 版本 >= 3.6。

尝试使用 pip3

Note that on some Linux distributions including Ubuntu and Fedora the pip command is meant for Python 2, while the pip3 command is meant for Python 3.

Installing Python on Linux.