Python打包exe时pyinstall报错:The ‘pathlib‘ package is an obsolete backport of a standard library package

具体报错如下:The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in E:\Anaconda\lib\site-packages) using
    conda remove
then try again.

“pathlib”包是标准库包的过时后端口,与PyInstaller不兼容。请使用以下命令删除此包(位于E:\Anaconda\lib\site-packages) 康达移除 然后再试一次。

因为conda安装的pathlib与pyinstaller冲突

第一步:卸载pathlib

Python打包exe时pyinstall报错:The ‘pathlib‘ package is an obsolete backport of a standard library package_第1张图片

 第二步:更新

Python打包exe时pyinstall报错:The ‘pathlib‘ package is an obsolete backport of a standard library package_第2张图片

 接下来就ok了

 

你可能感兴趣的:(python)