Resolved FileNotFoundError: [WinError 2] The system cannot find the file specified.

Resolved FileNotFoundError: [WinError 2] The system cannot find the file specified.

insert image description here

Article Directory

Error report

I have encountered this pit in my work before, and record the problem and solution. It may not be applicable to all situations, but it can be used for your reference.
The problem description is as follows:

FileNotFoundError: [WinError 2] The system cannot find the file specified.

The file does not exist, or the command cannot be used!

insert image description here

Solution

insert image description here
1. First check whether the path is correct
2. Then check whether the file exists
3. If the problem has not been solved, it is likely that the command cannot be used in the dos environment!

PS

If you have any questions, just leave a message in the comment area

Guess you like

Origin blog.csdn.net/weixin_50843918/article/details/130436833