简体   繁体   中英

Pycharm can't find python.exe

No Python at 'C:\\Users\\Mr_Le\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe'

Any time I try to run my code it keeps prompting me this ^^^ but I had recently deleted Python 3.8 to downgrade to Python 3.6 and just installed Python 3.6 to run pytorch .

Does anyone know how to fix this?

For other users: just check the "C:\\Users<>\\AppData\\Local\\Programs\\Python" folder on your PC and remove any folders belonging to previous installations of Python. Also check if environmental variables are correct.

1. In your windows search bar find python 3.9.8. [Searching for Windows][1] [1]: https://i.stack.imgur.com/vNMxT.png

  1. Right click on your the app

  2. Click on App Settings [Your settings will populate][2] [2]: https://i.stack.imgur.com/E4yM3.png

  3. Scroll down on this page [][3] [3]: https://i.stack.imgur.com/HFc1J.png

  4. Hit the Repair box

  5. Try to run your python script again after restarting all your programs

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM