PyCharm:Error running xxx: Cannot run program "D:\Python27\python.exe"
使用PyCharm运行程序时,出现Error running xxx: Cannot run program "D:\Python27\python.exe"这样的错误(xxx是你的项目名称),说明你在PyCharm中使用的python版本不对。
那么,如何在PyCharm中切换python的版本呢?
首先打开设置界面File>Settings:
然后找到左侧Projection Interpreter选项,显示的是当前使用的python版本,可以通过向下的箭头找到要切换成的版本。切换好了就点击Apply>OK,这样就解决这个问题了!
--------------------- 本文来自 LAN_Randall 的**** 博客 ,全文地址请点击:https://blog.****.net/LAN_Randall/article/details/78249280?utm_source=copy