Error: Please select a valid Python interpreter
Screenshot
how to fix this?
you pycharm have hard time to determine installed python path normally it does automatically but if not below steps will work for you
Expand the environment
then you will be asked for path were python installed
navigate to directory where python installed and select the python executable
this will help you
Go to run->Edit configurations then select Python interpreter location of the python installed ( python.exe
) then after change apply the changes.
.
I had this problem. I had changed the name of my module, but the old name still persisted here and there. I fixed it in the Python plugin for IntelliJ IDEA -- deleting the old module and recreating it from sources -- and then it worked in PyCharm. It might have been possible to fix it in PyCharm, I was just switching IDEs out of frustration.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.