我需要从多个python文件创建一个可执行文件,我选择使用pyinstaller。我用pip install pyinstaller安装了它。但是,当我执行pyinstaller --onefile Main.py的命令时,我得到了以下错误:
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
我检查了以找到解决这个问题的方法,并尝试了以下选项,但没有一个选项能够解决这个问题:
path.Uninstalled 向env 添加了py
嗨,当我试图将我的kivy python应用程序转换成一个可执行文件时,它给了我以下错误,对如何修复它有什么想法吗?
PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_kivy required by hook for module /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/hooks/hook-kivy.py.
使用PyInstaller,我从python脚本创建了一个可执行文件,如下所示:
pyinstaller --onefile pythonScriptName.py
但是,当我运行可执行文件时,我会得到一个错误ImportError: No module named 'MyModule'。“MyModule”是我在脚本中使用的自定义模块的占位符名称。因此,我假设PyInstaller没有打包定制模块。有什么办法让它这么做吗?
当我试图找到一种好方法来将我的python文件“捆绑”到一个.exe中时,我遇到了pyinstaller。我查阅了如何使用它的指南,找到了这个。我只是简单地使用pip install pyinstaller安装了pyinstaller,它看起来安装得很好,但是当我试图在控制台中使用pyinstaller时,它会抛出一个错误,说'pyinstaller' is not recognized as an internal or external command, operable program or batch file.我甚至尝试将目录更改为我的文件所在的位置,但它仍然会抛出同
我正在尝试使用pip安装PyInstaller,但是我这样做失败了。我有Python 2.7。
错误:
C:\Python27\Scripts>pip install pyinstaller
Downloading/unpacking pyinstaller
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pyinstaller
No distributions at all found for pyin
我正在建立一个项目,只是为了好玩,我想把它变成一个可执行文件,但它给了我错误 PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_IPython required by hook for module c:\users\waddy\appdata\local\programs\python\python39\lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks\hook-IPython.
我在Mac上使用PyInstaller有一个问题,我的Python2.7版本,我用pip安装了PyInstaller。当我在命令行中键入pyinstaller时,返回以下错误:
$ pyinstaller
-bash: pyinstaller: command not found
我从pip在Windows中安装了PyInstaller,它工作得很好。
我想从python文件生成一个.exe文件,但当我尝试使用pyinstaller时,我得到一个错误"Python Library not found“。我使用的是python 2.7.10,我也使用的是virtualenv。我应该在pyinstaller命令上输入路径/usr/bin/python,还是在virtualenv上输入python路径?
编辑:错误
16769 WARNING: lib not found: api-ms-win-core-kernel32-private-l1-1-1.dll dependency of C:\Windows/system32/user32