The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller.
时间: 2023-11-27 19:11:41 浏览: 261
"The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller." 这个错误是由于 'pathlib' 包是一个过时的标准库包,并且与 PyInstaller 不兼容。 这个错误通常发生在使用 PyInstaller 进行打包时。解决这个问题的方法是删除 'pathlib' 包。你可以使用以下命令来删除 'pathlib' 包:conda remove pathlib。删除后,再次尝试运行 PyInstaller 应该就可以正常工作了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [关于pyinstaller windows系统打包pathlib的报错](https://blog.csdn.net/weixin_45899578/article/details/131083998)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Python打包exe时pyinstall报错:The ‘pathlib‘ package is an obsolete backport of a standard library ...](https://blog.csdn.net/m0_45295337/article/details/131034052)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文