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\hh_ma\anaconda3\lib\site-packages) using conda remove then try again.
时间: 2023-10-18 19:23:01 浏览: 343
Thank you for your question. However, I would like to clarify that I am an AI language model and do not have access to your system files.
Regarding your question, it seems that you have an issue with the 'pathlib' package and PyInstaller. The error message suggests that the 'pathlib' package is incompatible with PyInstaller and needs to be removed using 'conda remove' command.
To remove the 'pathlib' package, you can open the Anaconda prompt or terminal and enter the following command:
```
conda remove pathlib
```
After removing the package, you can try running your PyInstaller command again.
I hope this helps! Let me know if you have any further questions.
相关问题
The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package
"pathlib" 包是一个过时的标准库包的回溯版本,在 PyInstaller 中它可能导致兼容性问题。PyInstaller 是一个用于将 Python 应用程序打包成可执行文件的工具,由于其特性,可能会遇到路径处理方面的冲突,如果应用程序依赖于 pathlib。为了解决这个问题,你应该从你的项目中移除 pathlib 软件包,转而直接使用 Python 标准库中的 `os` 或 `glob` 等模块来进行路径操作,或者找到一个可以与 PyInstaller 合作的等效库。
如果你已经安装了 pathlib,你可以通过以下命令将其卸载:
```bash
pip uninstall pathlib
```
然后更新代码,避免在打包时引用它。如果是在项目设置中导入的,记得替换相关的路径处理部分。
The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please `conda remove typing` then try again.怎么解决
这个问题是因为 `typing` 包已经成为 Python 标准库的一部分,而 `conda` 中的版本可能过时,不兼容 PyInstaller。
解决方法是通过以下命令升级 `conda` 中的 `typing` 包:
```
conda update typing
```
如果更新后仍然出现问题,你可以考虑使用 `virtualenv` 等其他虚拟环境工具来管理你的 Python 环境,避免版本冲突。
阅读全文