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

-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.

Actually 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.

2 Answers

Yes strange but it was explicit on the file that it should have run using bin / activate