The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package
时间: 2023-10-18 21:01:19 浏览: 70
This error message indicates that the 'pathlib' package you are using in your Python code is an older version and is not compatible with PyInstaller, a tool used for creating standalone executable files from Python scripts.
To resolve this issue, you can try upgrading the 'pathlib' package to the latest version by running the following command in your terminal or command prompt:
```
pip install --upgrade pathlib
```
If upgrading the package doesn't work, you can try removing it from your code and replacing it with the standard library package 'os.path'.
You can do this by replacing any instances of 'pathlib' in your code with 'os.path', which is a part of Python's standard library and should be compatible with PyInstaller.