How to Fix ImportError: No module named 'flask' with virtualenv
Flask is one of the most used frameworks in Python. If you are new to the flask and if you are getting this error - ImportError: No module named 'flask' on virtualenv, read further. You are sure that the Flask module is already installed. But still, you are getting No module error. This is because you need to install a flask framework inside the virtualenv. Follow these instructions Step 1 Create a directory where you will be installing the virtualenv. krishna@osboxes:~$ mkdir testenv Step 2 Get inside the folder and install virtualenv krishna@osboxes:~$ cd testenv/ krishna@osboxes:~/testenv$ pip install virtualenv or $ sudo apt-get install virtualenv Successfully installed appdirs contextlib2 distlib filelock importlib-metadata importlib-resources pathlib2 scandir singledispatch six typing unknown unknown virtualenv Step 3 Activate the virtualenv This virtual environment requires activation and dedicated installation insid...