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

Python Setting Up a Local Python Environment Installing Python and Python Libraries Locally Using virtualenv

Maciej Walczak
Maciej Walczak
5,042 Points

I did install virtualenv but i can't run it

ok, so i managed to succesully install virtulenv on my local machine but i can't seem to get how to run it. I have no idea what to input in cmd. i am using win10.

ok so i found it c:\user\maciek\appdata\roaming\python\python35\site-packages\

is there anyway i dont have to type all-that path to run virtualenv?

2 Answers

Iskander Ismagilov
Iskander Ismagilov
13,298 Points
  1. to create new virtual environment you need to find the path of where virtualenv.exe is. For example In my computer (I use windows 7) it is: C:\python35\Scripts. 2.You can add that path to the system path of your computer. I do not know how exactly do that on windows 10, but may be this can help: http://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10
  2. After adding a path of virtualenv to your system path, for creating new virtual environment you can type in cmd: virtualenv name_of_new_env.

p.s. be careful editing your system path, do not remove something accidently.

Matthew Goodman
Matthew Goodman
12,786 Points

I am using the git Shell, your path should be something like this your env file name,, venv\Scripts\activate. then away you go. I was lost as all the ways to activate did not work till I found this out hope that helps.