I am facing a strange issue in PyCharm. I have defined a virtual environment "(venv)
" having Python3.8
as base as interpreter for project along with rest of packages required for the project. The same is selected in project run/debug
configuration as well. See pictures below.
My virtual environment has Python-3.8, however, when I try to run project, it tries to run the project with Python-3.7 present elsewhere in the PC. Here is that pic :
Furthermore, the interpreter listed in PyCharm at bottom right of the screen is correct as shown in figure:
I have seen a similar question answered here: PyCharm not using my configured virtualenv interpreter however the remedy suggested there doesn't work for me.