When creating a virtual environment, I run:
python3 -m venv env
I understand that -m
executes a module (venv
in this case). I also know that it only works if you have a __main__.py
file in your module. So, what does the shortcut -m
actually stand for?
Is it:
-m
for module or-m
for__main__
- Something else?
I couldn't find an unambiguous explanation. Here are some resources I investigated: