使用PyCharm运行程序时,出现Error running xxx: Cannot run program "D:\Python27\python.exe"这样的错误(xxx是你的项目名称),说明你在PyCharm中使用的python版本不对。

那么,如何在PyCharm中切换python的版本呢?

首先打开设置界面File>Settings:

                                     PyCharm:Error running xxx: Cannot run program "D:\Python27\python.exe"

然后找到左侧Projection Interpreter选项,显示的是当前使用的python版本,可以通过向下的箭头找到要切换成的版本。切换好了就点击Apply>OK,这样就解决这个问题了!

                                     PyCharm:Error running xxx: Cannot run program "D:\Python27\python.exe"

--------------------- 本文来自 LAN_Randall 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/LAN_Randall/article/details/78249280?utm_source=copy

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-06-22
  • 2021-12-29
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-06-16
  • 2022-12-23
  • 2021-06-23
  • 2021-04-09
相关资源
相似解决方案