Aug-12-2018, 04:25 PM
Aug-12-2018, 07:15 PM
Hello,
go to terminal, run
and see if Django is there. If you have installed Django in a virtual environment of course make sure to activate the venv first.
go to terminal, run
pip list
and see if Django is there. If you have installed Django in a virtual environment of course make sure to activate the venv first.
Sep-27-2018, 11:34 AM
I write the code snippet from tutorial:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
and get the error:
line 1,
from flask import Flask
ModuleNotFoundError: No module named 'flask'
I have installed Flask and checked that it is there:
C:\Users\fpourki\PycharmProjects\Django_2\venv\Scripts\pip Flask
Package Version
------------ ----------------
click 6.7
coverage 4.5.1
Flask 1.0.2
itsdangerous 0.24
jinja2 2.10
...
...
...
...
Thanks in advance
F.Pourk
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
and get the error:
line 1,
from flask import Flask
ModuleNotFoundError: No module named 'flask'
I have installed Flask and checked that it is there:
C:\Users\fpourki\PycharmProjects\Django_2\venv\Scripts\pip Flask
Package Version
------------ ----------------
click 6.7
coverage 4.5.1
Flask 1.0.2
itsdangerous 0.24
jinja2 2.10
...
...
...
...
Thanks in advance
F.Pourk
Oct-16-2018, 01:01 PM
If I Have "Flask 1.0.2" why I get the error:
"No module named 'flask'"?
"No module named 'flask'"?
Oct-16-2018, 02:53 PM
Quote:I have installed Flask and checked that it is there:
C:\Users\fpourki\PycharmProjects\Django_2\venv\Scripts\pip Flask
Can you check whether you are running your script from the virtual environment, and not base Python installation?