Python Forum
pythy - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: pythy (/thread-12164.html)



pythy - fpourki - Aug-12-2018

Hi there

How can i check if i installed the Django?

Thanks in advance


RE: pythy - j.crater - Aug-12-2018

Hello,
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.


RE: pythy - fpourki - Sep-27-2018

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


RE: pythy - fpourki - Oct-16-2018

If I Have "Flask 1.0.2" why I get the error:

"No module named 'flask'"?


RE: pythy - j.crater - Oct-16-2018

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?