PyCharm-错误-找不到指定文件python.exe的解决方法
作者:南东先生 时间:2022-04-20 00:48:10
1、现象
系统提示找不到指定的文件:
Error running 'hello': Cannot run program "B:\pystudy\venv\Scripts\python.exe" (in directory "\python-study"): CreateProcess error=2, 系统找不到指定的文件。
2、原因
原来的工程目录(B盘)下,保存了python的编译环境,包括python.exe文件。工程目录移动到F盘以后,工程设置中找不到python.exe程序,因此报错,需要修改设置。
3、解决
打开菜单“File/Setting”。
找到“Project Interpreter” ,再选择显示全部,如下图:
先删除旧的程序位置。
再添加一个已有的ptyhon环境。
来源:https://blog.csdn.net/troglodyte/article/details/82803516
标签:PyCharm,指定文件,python,exe
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python文件读写保存操作的示例代码
2022-03-20 01:21:23
使用Python中OpenCV和深度学习进行全面嵌套边缘检测
2021-04-21 10:21:34
![](https://img.aspxhome.com/file/2023/0/67420_0s.jpg)
Python性能优化技巧
2021-06-29 12:48:32
ASP.NET中的几种弹出框提示基本实现方法
2023-07-13 00:23:50
Oracle11.2 命令行手工最简创建数据库的过程
2009-09-14 12:07:00
教你用Python实现一个轮盘抽奖小游戏
2021-11-04 23:49:03
![](https://img.aspxhome.com/file/2023/6/71406_0s.jpg)
python小项目之五子棋游戏
2022-07-12 06:24:23
![](https://img.aspxhome.com/file/2023/8/72848_0s.jpg)
激发你的灵感:50个优秀的Favicons设计
2007-10-21 19:52:00
![](https://img.aspxhome.com/file/UploadPic/200710/21/20071021211019426s.gif)
富文本编辑器的基本原理与实践
2008-06-13 13:28:00
Python读取word文本操作详解
2023-08-23 15:32:50
![](https://img.aspxhome.com/file/2023/3/61993_0s.jpg)
css样式表滤镜全接触
2007-10-26 12:48:00
[JS]点出统计器
2013-07-22 03:23:24
开发Web应用程序的结构化过程
2009-06-01 10:52:00
![](https://img.aspxhome.com/file/UploadPic/20096/1/01-47s.png)
让大家看看Object标签的强大功能---多用途
2009-02-21 10:18:00
python GUI模拟实现计算器
2023-01-08 22:20:40
![](https://img.aspxhome.com/file/2023/6/66906_0s.jpg)
快速配置PHPMyAdmin方法
2023-07-16 07:05:20
ACCESS数据库转换MYSQL数据库的软件
2007-09-20 20:06:00
![](https://img.aspxhome.com/file/UploadPic/20079/20/2007920201417132s.jpg)
python实现简单五子棋游戏
2021-04-04 16:15:57
![](https://img.aspxhome.com/file/2023/5/65915_0s.jpg)
将各种类型或对象都转变为数组
2009-12-28 13:19:00
老生常谈CSS网页布局的意义与副作用
2008-09-12 12:31:00