Python Forum
Flask not running python interpreter from virtual env
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask not running python interpreter from virtual env
#1
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.
Reply
#2
did you start your virtual environment before running flask?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [Solved] Running Gunicorn with flask.... SpongeB0B 1 1,588 Jun-27-2022, 03:09 PM
Last Post: SpongeB0B
Question running Flask with waitress having web traffic log... SpongeB0B 2 5,790 May-06-2021, 07:07 AM
Last Post: SpongeB0B
  python 3.7 on windows using flask and flask-sqlalchemy. Alpy 2 3,944 Aug-12-2020, 07:24 PM
Last Post: Alpy
  Flask Ubuntu Server Not Running Wheel 0 1,977 Jul-14-2020, 08:12 PM
Last Post: Wheel
  Running Flask web on other IP than 127.0.0.1 popolon59 1 2,095 Mar-29-2020, 10:02 AM
Last Post: Larz60+
  Running simple flask - getting 404 beginner1 2 5,268 Oct-28-2019, 02:10 PM
Last Post: beginner1
  Running flask run produces error. Charles1 1 4,028 Oct-04-2019, 10:38 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020