**
1、环境说明**
Windows7,Anconda+Python3.5.2,64位系统。
**
2、开始安装**
小编有一个免费分享Python资料和大量干货的圈688244617 欢迎来一起学习交流
pip install pyinstall
安装成功,一切看起来很顺利,但实际上当你运行打包代码的时候,可能出现如下问题
pyinstaller -F test.py
AttributeError: 'str' object has no attribute 'items'
AttributeError: 'str' object has no attribute 'items'
不要错过免费学习的机会啊688244617,赶紧来吧
AttributeError: ‘str’ object has no attribute ‘items’
通过网上查找资料,很快就解决了,原来是setuptools没有安装。看到有篇文章里写到报错虽然是在最后一行,但问题却是在日志信息中,其中有No moudle named “setuptools._vender”这个提示。
pip install setuptools
安装完成后,我就可以打包简单的test.py文件了,文件内容即print(“hello world”)。这看起来,似乎没问题了。但是当我打包我的工程代码的时候,发现又开始报错。
pyinstaller -F test.py
from_buffer() ca