简体   繁体   English

Pycharm 找不到 python.exe

[英]Pycharm can't find python.exe

No Python at 'C:\\Users\\Mr_Le\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe' '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 .每当我尝试运行我的代码时,它都会不断提示我这个^^^但我最近删除了Python 3.8以降级到Python 3.6并且刚刚安装了 Python 3.6 来运行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.对于其他用户:只需检查 PC 上的“C:\\Users<>\\AppData\\Local\\Programs\\Python”文件夹并删除属于以前安装的 Python 的所有文件夹。 Also check if environmental variables are correct.还要检查环境变量是否正确。

1. In your windows search bar find python 3.9.8. 1.在你的 windows 搜索栏中找到 python 3.9.8。 [Searching for Windows][1] [1]: https://i.stack.imgur.com/vNMxT.png [搜索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单击应用程序设置[您的设置将填充][2] [2]:https://i.stack.imgur.com/E4yM3.png

  3. Scroll down on this page [][3] [3]: https://i.stack.imgur.com/HFc1J.png在此页面向下滚动[][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重新启动所有程序后尝试再次运行您的 python 脚本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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