Python Forum
Flask not running python interpreter from virtual env - 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: Flask not running python interpreter from virtual env (/thread-22680.html)



Flask not running python interpreter from virtual env - Charles1 - Nov-22-2019

Hi,

I started learning Flask development on Windows 10.

After a bug crept in I noticed that the debugger was showing that files were coming
from the global interpreter folder and not from the virtual environment.

The line below shows the path to the global interpreter.

File "J:\Programs\Python\Python37\lib\json\__init__.py", line 293, in load
return loads(fp.read(),

Virtual Env:
Python 3.7.3
Flask 1.1.1
Werkzeug 0.16.0

I was running Flask project in a virtual environment from Windows command line.

The global python has a json folder but no such folder exists in the virtual environment.

Thanks in advance for any help.


RE: Flask not running python interpreter from virtual env - Larz60+ - Nov-22-2019

did you start your virtual environment before running flask?