简体   繁体   English

我收到错误 ImportError: No module named _bootlocale while runnig pyinstaller on linux

[英]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.

相关问题 PyInstaller - ImportError:没有名为 _bootlocale 的模块 - PyInstaller - ImportError: No module named _bootlocale 带有 Python 的 PyInstaller:3.10.0b4 - ImportError:没有名为 _bootlocale 的模块 - PyInstaller with Python: 3.10.0b4 - ImportError: No module named _bootlocale PyInstaller“ImportError:没有名为Pyinstaller的模块” - PyInstaller “ImportError: No module named Pyinstaller” PyInstaller:“导入错误:没有名为 htmlentitydefs 的模块” - PyInstaller: “ImportError: No module named htmlentitydefs” PyInstaller:“ImportError:没有名为 os 的模块” - PyInstaller: “ImportError: No module named os” ImportError:运行从pyinstaller获得的可执行文件时,没有名为几何的模块 - ImportError: No module named geometry while running executables obtained from pyinstaller PyInstaller ImportError:没有名为spiderloader的模块 - PyInstaller ImportError: No module named spiderloader PyInstaller-ImportError:没有名为“ rethinkdb”的模块 - PyInstaller - ImportError: No module named 'rethinkdb' pyInstaller:ImportError:没有名为“ praw”的模块 - pyInstaller: ImportError: No module named 'praw' Pyinstaller错误ImportError:没有名为'requests.packages.chardet.sys的模块 - Pyinstaller error ImportError: No module named 'requests.packages.chardet.sys
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM