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

Jeremy Cornwell
Jeremy Cornwell
11,106 Points

Not a recognized command when activating venv

c:\Python34\Lib\venv\scripts\activate returns the following "is not recognized as an internal or external command, operable program or batch file." I'm trying to figure out what I'm not doing correctly.

To the best of my knowledge, I've been able to complete everything up to the activation point.

2 Answers

Is "c:\Python34\Lib\venv\scripts\activate" the command you are trying to run in command prompt? Not too familiar with command prompt, but I would have to guess that activate is the "file" you want to run and files always end with a .filetype.

Try specifying the .filetype, so if activate was a .py file you would do "c:\Python34\Lib\venv\scripts\activate.py"

Now if activate is not a file and instead a folder, then it cannot be "ran" because it is a folder and doesn't have any contents, just other files/folders

Jeremy Cornwell
Jeremy Cornwell
11,106 Points

From my understanding its a .bat file and I've tried the extension with the same result.