Python windows error: [error 3] and common windows error errors

1、 The common causes and solutions of error3 are as follows

1. The MKDIR function creates several directories in succession. In other words, there is no f/AA/originally. If you need to create f/AA/BB, you will get this error,

Solution, layer by layer detection, or directly use the makedirs function.

2. Lisdir enumerates directories that do not exist.

Solution: before enumerating, judge whether the changed path exists.

3. Creating a file in a read-only folder will also produce the above error.

4. Coding problem: pay attention to the coding format of the file, and modify it in the first line of Py file.

2、 Common windows error and its causes

Windows error: [error 2] does not exist

Windows error: [error 3] does not have this path

Windows error: [error 5] permission problem

Windows error: [error 13] this document is occupied by other programs and cannot be processed

Windows error: [error 123] path syntax error
error

Windows error: [error 145] the directory is not empty. It often appears when deleting a non empty directory

Read More: