使用 venv 和 python 2.x 创建环境

creating an eviroment with venv and python 2.x

conda 用户在这里。我想使用 Python 内置 venv 环境工具创建一个环境。 我想设置一个环境包括 python 2.7

venv 可以吗?我还没有看到任何例子。

谢谢

从这个blog:

... , venv is limited to versions of Python greater than 3.3

我们必须使用 pyenv 或 virtualenv(可能还有其他的,例如 conda)。

不,stdlib venv 无法针对不同的运行时。

改用virtualenv