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 trialRicardo Rodriguez
9,758 Points-bash: activate: command not found
Hi everyone, I'm running source path/to/venv/bin/activate and I get: -bash: activate: command not found
In my particular case path is under my username, that is:
Users ▸ username ▸ intro ▸ bin
so while located at '/Users/username' I type (in my case venv is called "intro") and is not working
I also tried locating myself at username/intro/bin to then execute 'activate' and same error.
2 Answers
Kenneth Love
Treehouse Guest TeacherStrange.
Glad you figured it out!
Ricardo Rodriguez
9,758 PointsYes strange but it was explicit on the file that it should have run using bin / activate
Ricardo Rodriguez
9,758 PointsRicardo Rodriguez
9,758 PointsActually I just opened the activate file and it says
This file must be used with "source bin/activate" from bash
you cannot run it directly
so..., I did "source bin/activate" and it works.