[英]Pyinstaller Error when converting .py to .exe
每当我尝试将任何.py文件放入pyinstaller时,我总会得到一个错误TypeError: expected str, bytes or os.PathLike object, not NoneType
我还没有找到任何有意义的修复。
我试过重新安装pyinstaller和不同的文件。
我不认为有任何代码问题,因为无论我使用什么文件都会发生这种情况
预期:编译的exe文件。
实际结果: TypeError: expected str, bytes or os.PathLike object, not NoneType
错误,没有编译任何内容
首先,使用pip uninstall pyinstaller
uninstall pyinstaller完全pip uninstall pyinstaller
然后删除C:/Users/<Username>/AppData/Roaming/Pyinstaller
目录。
下一步使用pip install -U pyinstaller
。
如果仍然显示同样的错误尝试更换bindepend.py
从这里在<Python path>\\Lib\\site-packages\\PyInstaller\\depend
目录。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.