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! While you're at it, check out some resources Treehouse students have shared here.
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
Ryan Thayer
2,038 PointsWhat folder should the virtual environment go in?
I extracted the myapp.zip to the folder myapp on the Desktop. Inside of that folder there is _MACOSX and myapp. I have been creating the myapp-env at this level. It seems annoying to then need to use cd myapp, to move into that folder containing .DS_Store and app.py, to be able to run 'python3 myapp.py' from the cmd.
My question is, should I be creating the virtual environment inside the folder with .DS_Store and app.py or is it best practice to keep doing it as I have been?
1 Answer
Travis Alstrand
Treehouse Project ReviewerHey there!
Yes you would typically want anything related to your project inside the root of the actual project directory (folder containing your files like app.py).
My recommendation would be to create your virtual environment inside the root of this nested folder containing all of your work (myapp). The outer directory sounds unnecessary in this case.