What is the difference between virtualenv and -m venv when creating virtual environments (Python)

Sorry if I joked a bit. I am confused by this what is the difference between two    virtualenv myvenv
and
  -m venv myvenv
The first one works well for me in creating virtual environments, while the other one does not.
I cd into my development directory and use " virtualenv myvenv " and it creates a virtual environment. But if I use " -m venv myvenv ", it just gives errors. Please help me understand.

+4
source share
1 answer

venv - , python 3. pip install .

virtualenv , https://virtualenv.pypa.io/en/stable/ ​​ pip.

.

python3, "" venv

, , , Python2/pip2

+6

Source: https://habr.com/ru/post/1677624/


All Articles