Florida Man
Florida Man

Reputation: 2147

creating an eviroment with venv and python 2.x

conda user here. I would like to create an environment with the Python builtin venv environment tool. I would like to set up an environment including python 2.7

Is that possible with venv? I have not seen any example yet.

Thanks

Upvotes: 1

Views: 50

Answers (2)

wim
wim

Reputation: 362557

No, it is not possible with the stdlib venv to target a different runtime.

Use virtualenv instead.

Upvotes: 2

Florida Man
Florida Man

Reputation: 2147

From this blog:

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

We have to use either pyenv or virtualenv (probably there are others e.g., conda).

Upvotes: 1

Related Questions