I keep getting this error whenever I try to run my REPL, This worked yesterday but doesnt work today. ImportError: cannot import name 'Flask' from 'flask' (unknown location)
I have tried uninstalling and reinstalling flask, but I get this error when I try using pip. ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/runner/NexusFlow/venv/lib/python3.10/site-packages/Flask-2.2.3.dist-info/METADATA'
Here is all of the imports where I get the error.
from flask import Flask, jsonify, make_response, request, redirect, render_template, url_for
from json import loads
from werkzeug.security import generate_password_hash, check_password_hash
from flask_sqlalchemy import SQLAlchemy
from functools import wraps
from flaskext.markdown import Markdown
from sqlalchemy.inspection import inspect
from datetime import datetime, timedelta
the solution was to delete and recreate the virtual envronment
I tried using pip for the new REPL but I get this error
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Requirement already satisfied: flask in ./venv/lib/python3.10/site-packages (2.2.3)
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/runner/nexusflow/venv/lib/python3.10/site-packages/Flask-2.2.3.dist-info/METADATA'
I am trying to delete the virtual environment from the github repository and then ill try pulling it again