对写完的一个python进行打包时,显示一下内容
C:\Users\86187>pyinstaller -F D:\软件\pycharm\pythect4\stusystem.py
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\86187\anaconda3\Lib\site-packages) using
conda remove
then try again.
请问各位python学者怎么解决
conda remove pathlib
删除这个包重新打包应该就可以了,但是删除之前先看看删除这个包对你有没有影响
【相关推荐】
当安装完成后,为了使用方便,设置Python的运行环境(在Windows的路径中添加Python的运行路径)。
具体步骤如下:
1、进入“高级系统设置”(我的电脑-属性-高级系统设置)
2、选择“高级-环境变量”
3、在系统变量栏里中找到“path”,编辑在安装Python时,如果勾选上了“Add Python x.y to PATH”,则这一步也可以省略
设置成功,试试看 到命令窗口(Win+R -> 运行 - cmd)
至此运行环境安装完成