当前位置:首页 > IT技术 > Windows编程 > 正文

FileNotFoundError: [WinError 2] 系统找不到指定的文件
2021-10-28 15:24:55

FileNotFoundError: [WinError 2] 系统找不到指定的文件

报错截图如下:

FileNotFoundError: [WinError 2] 系统找不到指定的文件_IT

选择左边的External Libraries

FileNotFoundError: [WinError 2] 系统找不到指定的文件_搜索_02

选择python 3.7(楼主用的是python3.7)

FileNotFoundError: [WinError 2] 系统找不到指定的文件_python_03

选择Libs子目录

FileNotFoundError: [WinError 2] 系统找不到指定的文件_python_04

找到subprocess.py文件,并打开

FileNotFoundError: [WinError 2] 系统找不到指定的文件_FileNotFoundError_05

搜索“class POpen”

FileNotFoundError: [WinError 2] 系统找不到指定的文件_IT_06

往下稍微翻一下

FileNotFoundError: [WinError 2] 系统找不到指定的文件_子目录_07

ctrl+S保存

运行

本文摘自 :https://blog.51cto.com/u