【pathlib 卸载】

The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package

  • pathlib 卸载

pathlib 卸载

具体报错如下: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冲突

运行 python -m pip install pathlib即可。

再次运行pyinstall命令,一切正常。

你可能感兴趣的:(python,linux,开发语言)