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
Josefina Terrera
2,264 Pointscommand not found when typing: ./Library/Python/3.4/lib/python/site-packages venv
The question was more or less asked, but it's still not clear to me what I have to do.
Josefina Terrera
2,264 PointsI'm trying to create it. I just installed it. I was following the tutorial: using virtualenv and Kenneth is running it for the first time, and he says he needs to add a path at minute 2:13. When I do mine: I get:
joseterrera (master) ~ $ sudo ./Library/Python/3.4/lib/python/site-packages venv
sudo: ./Library/Python/3.4/lib/python/site-packages: command not found
joseterrera (master) ~ $ ./Library/Python/3.4/lib/python/site-packages venv
-bash: ./Library/Python/3.4/lib/python/site-packages: Permission denied
[MOD: added ```bash formatting -cf]
3 Answers
Chris Freeman
Treehouse Moderator 68,468 Pointsvenv is a built in package new in Python 3.3. The link has more help on invoking venv module. Try:
$ python -m venv -h
Josefina Terrera
2,264 PointsThanks. I tried python -m venv -h When I type that I get: /usr/bin/python: No module named venv But I already installed virtualenv: Installing collected packages: virtualenv Successfully installed virtualenv-13.1.2
Chris Freeman
Treehouse Moderator 68,468 PointsCareful which Python you are using. with Python 2 you'll get "no module named venv". With Python 3, you'll get the help message.
Chris Freeman
Treehouse Moderator 68,468 Pointssite-packages is a directory, which can not be executed. The path Kenneth uses is:
~/Library/Python/3.4/bin/virtualenv venv
where venv is the target name for the new virtual env directory. Then the environment would be invoked with:
. ./venv/bin/activate
Chris Freeman
Treehouse Moderator 68,468 PointsChris Freeman
Treehouse Moderator 68,468 PointsAre you trying to create a virtual environment or invoke one that has been created?