如何在 pew 环境中使用 Python 3.x 而不是 Python 2.7?

How to use Python 3.x with pew environment instead of Python 2.7?

当我查看pew的Python版本时,发现是2.7,但我想使用3.5或更高版本。有什么解决办法吗?

安装 Pew 及其可选 Pythonz 支持(如果您已经有 pew,则只需安装 pythonz):

pip install --user pew[pythonz]

那么你可以install other versions of Python easily:

pew install 3.7.3

那么你可以create a new environment using that Python:

pew new -p $(pew locate_python 3.7.3) myenv