记录一下装pyinstaller和生成exe遇到的错误

记录一下装pyinstaller和生成exe遇到的错误

下次再遇到这个问题可以直接看最后(?maybe)

问题:重装了一遍python,自定义安装时报错,Error Writing to file:…
解决办法:以管理员身份运行

ps:默认安装没有报错
链接:https://www.cnblogs.com/shuaishuaidefeizhu/p/10196882.html
记录一下装pyinstaller和生成exe遇到的错误_第1张图片

问题:用pip install pyinstaller命令安装时出现TypeError:‘module’ object is not callable
解决方法:前面加上python -m 用python -m pip install pyinstaller解决,开始出现进度条

链接:https://stackoverflow.com/questions/58451650/pip-no-longer-working-after-update-error-module-object-is-not-callable
记录一下装pyinstaller和生成exe遇到的错误_第2张图片

问题:安装pyinstaller时报错error: invalid command 'bdist_wheel
解决办法:前面加上python -m ,用python -m pip install wheel成功

链接:https://blog.csdn.net/chouzhou9701/article/details/86662689
在这里插入图片描述

问题:pyinstaller生成exe时报错 TypeError: an integer is required (got type bytes)
解决办法:用pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz 重装pyinstaller,再次打包程序成功。

ps:感情前面都是白折腾,好气哦
链接:https://blog.csdn.net/chen_soldier/article/details/102667201
记录一下装pyinstaller和生成exe遇到的错误_第3张图片
小白跪谢以上大神。

你可能感兴趣的:(python)