I have created a python script inside the virtualenv and tried to execute that file. This is my code:
(env) C:\Users\amitayadav\Documents\Amita_projects\Python\flask_project>python3 app.py
Traceback (most recent call last):
  File "app.py", line 1, in <module>
    from flask import Flask
ModuleNotFoundError: No module named 'flask'
It throws an error. However, when I run this command it runs fine:
(env) C:\Users\amitayadav\Documents\Amita_projects\Python\flask_project>python app.py
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 500-586-454
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
I don't understand why this is happening. What is the problem with the python3 command?
 
     
     
    