I had created a project in pycharm using virtualenv environment. My current location is (venv) C:\Users\username\Documents\pycode\MyProj1> Now I am running pip install flask and it is downloading packages in the global environment,i.e., C:\Users\username\AppData\Local\Programs\Python\Python36-32\Lib\site-packages instead of my virtual environment. I can install packages in the virtual environment only when I go to project interpreter in settings and then adding flask. Can anyone tell how can I install packages in virtual environment by using pip? Continue reading...