首页 > 解决方案 > 无法运行程序。系统找不到指定的文件

问题描述

更新我的 Windows 笔记本电脑后,我尝试运行我的 PyCharm 程序。但是我按下运行并收到此错误

“错误:无法运行程序“C:\Users\user\Desktop\PyCharm\Scripts\python.exe”(在目录“C:\Users\user\PycharmProjects\pythonProject”中):CreateProcess error=2,系统找不到指定的文件”。我进入编辑配置并看到这个“[invalid] Project Default (Python 3.9 (PyCharm)) C:\Users\user\Desktop\PyCharm\Scripts\python.exe”。

标签: pycharm

解决方案


在 中更新解释器File - Settings - Project - Python Interpreter,请参阅帮助https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter


推荐阅读