Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Virtualenv

Stheven Cabral
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Stheven Cabral
Full Stack JavaScript Techdegree Graduate 29,854 Points

What does the -m stand for?

I’ve seen -m and -p used alot in these coding tutorials and on youtube but no one explains what they really mean. Could someone explain what they mean or provide me with documentation explaining all the different types? I can’t seem to find them online.

Thanks

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,389 Points

As mentioned in the docs:

-m <module-name>

Search sys.path for the named module and execute its contents as the __main__ module

I didn’t see a reference to -p. Do you have a usage case?

There is a -p that is used in virtualenv to set the python version.

Post back if you need more help. Good luck!!!

Try entering

python --help

at the command line