sinewalker / sinewalker.github.io

personal public blog
0 stars 0 forks source link

setup for python3 should use pyvenv instead of virtualenv? #13

Closed milohax closed 7 years ago

milohax commented 7 years ago

Apparently this is a thing in Python3?

Mentioned in "How to Make Mistakes in Python" by Mike Pirnat.

I should verify this, and then update the wiki if it's true.

sinewalker commented 7 years ago

hey look at that: i'm talking to myself.

sinewalker commented 7 years ago

This Stack Overflow Question discusses the various python environment things. The Accepted (and so far only) Answer mentions that pyvenv was deprecated in Python 3.6 anyway.

So that may answer this Question too....

sinewalker commented 7 years ago

Going by the documentation it's a bit unclear to me whether python3 -m venv myenv path/to/myenv has any advantage over virtualenv other than it is installed by default with Python 3.6+. The Deprication of pyvenv and its relation to venv is pretty confusing.

Since I have clear instructions for using virtualenv, and the opininon of the SO answer is that the consesnus seems to be to still use virtualenv anyway. I'm closing this Quesiton with the Answer:

just use virtualenv and ignore the advice about pyvenv