1、ValueError: script‘C:\Users\——’ not found
把C盘转换成D盘输入:
d:
定位到打包文件输入(注意“cd”后有空格):
cd <打包内容文件夹>
再输入(注意“-F”左右都有空格):
pyinstaller -F <打包内容名称>.py
2、TypeError: an integer is required
输入:
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
3、error: invalid command 'bdist_wheel’
输入(注意空格):
pip3 install wheel
4、UPX is not available.
到官网https://upx.github.io/下载
UPX下载下来是一个压缩包,解压得到 upx.exe文件
把upx.exe文件拷贝到pyinstaller同目录下,在Python安装路径里的Scripts目录下
5、解决Pyinstaller问题参考博主(实测有用)
1.python安装第三方库的三种方法-超级详细呀
2.python:使用PyInstaller打包成exe文件,以及TypeError: an integer is required (got type bytes)异常解决
3.总结:如何在cmd(命令提示符)中打开指定文件夹路径
4.pyinstaller打包时提示UPX is not available
5.pyinstaller第三方库打包文件“ValueError”:找不到文件
6.Python第三方库安装失败问题的解决方案
7.python安装第三方库遇到 ERROR: Command errored out with exit status 1:
8.python安装包时遇到pip无法升级的问题
Python用pyinstaller打包一系列问题,一星期才解决
最新推荐文章于 2022-08-21 12:32:27 发布