#🔒 Module Not Found even after pip install flask

49 messages · Page 1 of 1 (latest)

foggy musk
#

Module Not Found even after pip install flask

mild kiteBOT
#

@foggy musk

Python help channel opened

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.

ocean hare
#

Do pip freeze and check if there is flask in it

rugged apex
#

are you in a venv?

bright sparrow
#

can you screenshow your VSC window

foggy musk
foggy musk
ocean hare
#

How are you running the code ?

foggy musk
ocean hare
#

Can you send a screenshot of the vscode window

foggy musk
rugged apex
#

or whatever python version you’re using

ocean hare
#

try running python main_flask.py

foggy musk
foggy musk
rugged apex
#

wdym

foggy musk
rugged apex
#

yea

foggy musk
#

so do i need to change something?

ocean hare
#

Can you do where python and where pip

rugged apex
#

just run it

foggy musk
#
C:\msys64\ucrt64\bin\python.exe: No module named pip```
rugged apex
#

try pip3

foggy musk
foggy musk
rugged apex
#

how’d u install python?

foggy musk
rugged apex
#

i’m sorry i can’t help much

#

i don’t use windows for dev stuff

#

@ocean hare

ocean hare
#

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

rugged apex
#

got tired of installers for everything lol

#

such an ass-backwards approach

foggy musk
foggy musk
ocean hare
#

@foggy musk

Try creating a virtualenv and install flask there

#

Try venv venv

#

Then venv\Scripts\activate

#

Then python -m pip install flask

bright sparrow
#

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.

mild kiteBOT
#
Python help channel closed

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.