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 help with installing flask

Hi everyone! I'm trying to move forward and start practicing what I've been learned already in the Python track. I've already install the pip, but when I try to instal Flask, I've got this message. Any help? I have python 3

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/itsdangerous-1.1.0.dist-info' Consider using the --user option or check the permissions.

1 Answer

The --user option (and others) can be found in the answer here. Try:

python -m pip install --user Flask

Thanks a lot Kris! It works, but I don't know why I have python 2, even that I installed the python 3. I didn't see this in the course, I don't know how to run python 3 with the flask framework and start trying to put in practice with the things I've learned

I saw some videos that they developing on vs code, but I cannot run the python 3