python – PyInstaller“ImportError:没有名为Pyinstaller的模
发布时间:2020-12-16 23:39:46 所属栏目:Python 来源:网络整理
导读:这是当我运行 python configure.py时产生的代码. dan@Q430-Q530:~/pyinstaller-2.0/PyInstaller$python configure.pyTraceback (most recent call last): File "configure.py",line 28,in module from PyInstaller import HOMEPATH,PLATFORMImportError: No
这是当我运行
python configure.py时产生的代码.
dan@Q430-Q530:~/pyinstaller-2.0/PyInstaller$python configure.py Traceback (most recent call last): File "configure.py",line 28,in <module> from PyInstaller import HOMEPATH,PLATFORM ImportError: No module named PyInstaller 所以,目前,我甚至不能让PyInstaller运行,因为一个丢失的模块叫做PyInstaller.这是PyInstaller 2.0,您可以分别找到/pyinstaller-2.0和/pyinstaller-2.0/PyInstaller目录here和here内部的一些屏幕. 有人在这里知道发生了什么吗?我尝试将/pyinstaller-2.0目录中的pyinstaller.py文件复制到/pyinstaller-2.0/PyInstaller目录中,但我没有运气. 这可能会变得很容易解决,但是…让我陷入困境.如果有更多的信息需要,请问,我会尽量提供. 解决方法
使用PyInstaller 2.0,您不需要运行configure或pyinstaller文件. (阅读安装文件附带的PyInstaller 2.0文档.)
建立你的项目;在/ your / path / to / pyinstaller /目录中,只需运行: “python pyinstaller.py [opts] yourprogram.py” (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |