我已经创建了python文件的.exe
。当我运行.exe
文件时,出现以下错误消息:
追踪(最近通话):
文件“ C:--- \ Anaconda2 \ lib \ site-packages \ py2exe \ boot_common.py”,行92,在
中导入行缓存
ImportError:没有名为linecache的模块
追踪(最近通话):
文件“ mypythonfile.py”,第8行,在
ImportError:没有名为os'的模块
. exe
文件并运行(x
是程序包)pip install x
pip install module
然后再次使用pyinstaller
创建可执行文件。它对我有用。