windows系统conda环境当用pyinstaller 打包的是往往会报这个错:
The ‘pathlib’ package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in C:\Users\zhongyin\AppData\Local\anaconda3\Lib\site-packages) using
conda remove
then try again.
“pathlib”包是标准库包的过时后端,与PyInstaller不兼容。请使用删除此包(位于C:\Users\zhongyin\AppData\Local\anaconda3\Lib\site包中)
conda移除
然后再试一次。
看着是让你移除pathlib,用conda remove,我看到一个博主也是conda remove pathlib,但是我劝大家不要,搞不好会把conda 环境搞坏掉。用pip uninstall pathlib 就可以解决问题。
参考链接:https://blog.csdn.net/weixin_45899578/article/details/131083998