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

Jonathan Fernandes
PLUS
Jonathan Fernandes
Courses Plus Student 22,784 Points

Can someone explain to my how to set up my virtualenv on mac?

I downloaded virtualenv with pip but I can't make sense of changing the path section. I know it is downloaded because when I run:

$ pip3 list

Virtualenv shows up as an installed library.

Could someone explain to me why we are changing the path, how to do it, and why when I type it in exactly like he did in the video, I get an error?

Akilah Jones
Akilah Jones
18,397 Points

Can you attach screenshot or copy and paste exact command and errors?

As far as why add it to the path, we add items to the path environment variable so that we don't have to type out the filepath every time we want to run a program.

Example: If I add C:\Program Files\example\bin to the path

I can simply type $ application instead of $ C:\Program Files\example\bin\application, in order to run my program

I hope that helps

William Li
William Li
Courses Plus Student 26,868 Points

Akilah, I think the questioner is asking about how to set up virtualenv on a Mac, not Windows .

1 Answer

Jonathan Fernandes
PLUS
Jonathan Fernandes
Courses Plus Student 22,784 Points

Okay, figured it out. Sorry to cause trouble. My mac installed into a different directory so it wasn't working when I used the one he was using in the video. I had assumed it was the same for some reason...

Sorry all!

William Li
William Li
Courses Plus Student 26,868 Points

no need to be sorry, Jonathan, it's awesome that you've managed to fix the problem on your own; because of that, I've moved your comment into an answer, and marked it as "Best Answer", consider it problem solved. Cheers.