I am using python 3.6 on windows10. I created a virtual environment with:
python -m venv venv
Then I installed a few packages and also installed selenium with the command:
pip install selenium
However when I import selenium, I get an error saying:
ImportError: No module named selenium
when I run the script in cmd. But when I run the same code in VSCode, it gives no errors. I am unable to understand the reason behind this. Also, I tried uninstalling and installing the whole environment again. No changes observed.
Note: I am planning to deploy this project to Heroku. So please give any suggestions you think would be necessary to do when deploying to Heroku.