Python Forum

Full Version: Flask not running python interpreter from virtual env
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
did you start your virtual environment before running flask?