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 trialpatrickbutlermonterde
Courses Plus Student 1,057 PointsWindows env. activation. Does not require source
FYI. to activate the virtualenv in windows you don't need t to source. Just call the 'activate.bat' in the scripts directory - not the bin one
C:\Projects\python-env>c:\Projects\python-env\test1\Scripts\activate.bat
(test1) C:\Projects\python-env>
The training should be expanded to support the Windows version.
4 Answers
Kenneth Love
Treehouse Guest TeacherThe Teacher's Notes show the correct way to activate a Windows virtualenv but, no, the action wasn't done in a screencast.
We'll look into adding it in. Thanks for your feedback!
Mary Yang
1,769 PointsYes I agree with Patrick. I'm only 3 minutes into the video and I've already had to spend about 30 minutes looking up the correct way to do things on Windows.
for anyone else having confusion, the source command isn't valid for windows. What worked for me was
C:\Users\'Username'\venv\Scripts\activate.bat
Of course replace 'Username' with your actual user name.
Kenneth Love
Treehouse Guest TeacherI'll see about getting a graphic added for that!
Mary Yang
1,769 PointsThanks Lumberjack! All of your courses have been great! I finished the hack n slash game today and wrote most of the game.py file successfully before following along with you. :)
Tom Drury
10,546 PointsI am a little confused. On Windows 7, I now have a virtualenv.exe file in my Python34/Scripts folder. I also have some activate files in \Lib\venv\scripts\nt.activate. I am slightly confused what does what? Do i first have to create a Venv and then activate it? I would also love a bit of info on what the various folders within Python34 are used for. Many Thanks.
Kenneth Love
Treehouse Guest TeacherYes, you have to create a virtualenv before you can activate it.