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 trialJoseph Anderson
10,617 PointsMy virtual environment doesn't think it has python or pip?
When I activated a venv in my windows command prompt, it returned a blank line, then my prompt (without the (venv) prefix Kenneth has in his video) and it also returns an error when I try to run pip or python in the environment saying neither are commands.
Can anyone tell me why this might be happening?
1 Answer
Joseph Anderson
10,617 PointsOk I figured it out. First I had to type "virtualenv venv" into my command prompt which set up the environment, then I had to scripts\activate. I also managed to set up the venv to give me a prompt with --prompt="VENV" which gave me a handy prompt.
Vittorio Somaschini
33,371 PointsVittorio Somaschini
33,371 PointsHi Joseph.
I have changed your comment into an answer so that you can mark it down as best answer and close the thread.
Well done in figuring it out yourself!
;) Vittorio