[英]I get error ImportError: No module named _bootlocale while runnig pyinstaller on linux
I get this error ImportError: No module named _bootlocale
, when I tried to convert python script into exe on linux using pyinstaller, I am using python 3.10.5 and pyinstaller 3.5我收到此错误
ImportError: No module named _bootlocale
,当我尝试使用 pyinstaller 将 python 脚本转换为 linux 上的 exe 时,我使用的是 python 3.55DDZ 3.50。
I fixed this issue by installing newer version of pyinstaller which is 5.4 using this command我通过使用此命令安装更新版本的 5.4 pyinstaller解决了这个问题
pip install pyinstaller==5.4
then I accessed the newer version by its absolute path which was /home/kali/.local/bin/pyinstaller
and I run the command /home/kali/.local/bin/pyinstaller /home/kali/Desktop/main.py --onefile
, so I convert python script to exe successfully pip install pyinstaller==5.4
然后我通过其绝对路径访问较新版本,即/home/kali/.local/bin/pyinstaller
并运行命令/home/kali/.local/bin/pyinstaller /home/kali/Desktop/main.py --onefile
,所以我将 python 脚本成功转换为 exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.