#🔒 Module Not Found even after pip install flask
49 messages · Page 1 of 1 (latest)
@foggy musk
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Do pip freeze and check if there is flask in it
are you in a venv?
can you screenshow your VSC window
Flask==3.0.3 yep
is that neccessary?
How are you running the code ?
code runner
Can you send a screenshot of the vscode window
use python -m pip install …
or whatever python version you’re using
try running python main_flask.py
same
do i need to change something in the command?
wdym
u said whatever version of python im using
yea
so do i need to change something?
Can you do where python and where pip
just run it
C:\msys64\ucrt64\bin\python.exe: No module named pip```
try pip3
nothing
same
how’d u install python?
long time, probably the installer
What does where python say?
I don't use windows either. I am on Linux too.
But this almost looks like you are using a different interpter than where flask is installed
i do wish to switch to linux, but fear that games start failing on it and minor stuff bcz windows is the major os
nothing
@foggy musk
Try creating a virtualenv and install flask there
Try venv venv
Then venv\Scripts\activate
Then python -m pip install flask
Then python file.py
the code runner is outdated for python, just uninstall it and use the python extension
which will give you a button similar to the code runner but better.
did the trick
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.