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 Flask Basics Welcome to Flask First Steps

Liam Guthmann
Liam Guthmann
2,072 Points

flask isn't working

running(in the workspace):

from flask import Flask

app = Flask(__name__) 

app.run(debug=True, port=8000, host='0.0.0.0')

It shoots out an error for the first line so i check "pip freeze" and nothing pops up.

Then when i try "pip intall flask" it says "Requirement already satisfied: flask in /usr/local/lib/python3.9/site-packages (0.10.1)"

i check again if it works but it still doesnt.

And when i try to intall it in a virtual environment it says "ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."

safe to say i am completely clueless, would really apprechiate it if someone told me whats going on

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey Liam Guthmann 👋

Thanks for bringing this issue to our attention! I've just tried things on my end and am indeed running into the same issue you're experiencing. I've let our dev team know about this issue to look into it.

Sorry for the inconvenience.