pycharm - 无法运行程序。系统找不到指定的文件
问题描述
更新我的 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”。
解决方案
在 中更新解释器File - Settings - Project - Python Interpreter
,请参阅帮助https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter
推荐阅读
- javascript - 找不到模块:无法在 reactjs 的“node_modules\react-moment\dist”中解析“moment”
- google-cloud-platform - 代码:4010 - 通过 Cloud Identity-Aware 代理连接失败
- javascript - reactjs 中的 createRef 给出错误(this.canvas.current 始终为空)
- php - 针对远程 PHP 服务器运行本地 PHP 测试
- android - Glide 会缓存转换后的图像还是原始图像?
- websocket - 无法建立 WebSocket 连接。连接建立错误:net::ERR_CERT_COMMON_NAME_INVALID
- javascript - 如何使用 Vue.js 更改语言 FirebaseUI-Web
- splunk - 使用 dedup 查找唯一主机。如何找到所选时间范围的平均值?
- php - 在 jquery Ajax 中显示从 php 文件返回的错误
- javascript - Javascript 对象将变量理解为字符串而不是变量