I encountered during the packaging process of pyinstaller, The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in D:\Anaconda\lib\site-packages) using The problem is that the packaging program in conda conflicts with the packaging module of pyinstaller
The above two steps can be solved