Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run app.py (ModuleNotFoundError) #135

Open
tealnshack opened this issue Jun 1, 2023 · 2 comments
Open

Unable to run app.py (ModuleNotFoundError) #135

tealnshack opened this issue Jun 1, 2023 · 2 comments

Comments

@tealnshack
Copy link

I am trying to run through local development and I haven't been able to get app.py to run backend URL output. The error that shows up is :

from flask_cors import CORS, cross_origin
ModuleNotFoundError: No module named 'flask_cors'

I did run the command: 'pip install -r requirements.txt' in the virtual environment that I created, but the error persists.

When running 'pip freeze' command, I get the following
Screenshot 2023-06-01 115135

Further, if I try to install flask_cors module, using 'pip install -U flask-cors', the output shows requirement already satisfied.

@saharmor
Copy link
Owner

saharmor commented Jun 4, 2023

@tealnshack have you tried running pip install -U flask-cors?

@tealnshack
Copy link
Author

Yeah, when I do it, the package is visible but when I run the command to start the web server the same error pops up despite the package being installed in the virtual environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants