在win7下用python写的一个东西,上传到centos6.5上使用pyinstaller打包
打包过程中出现了上面的错误信息:
7131 INFO: Processing pre-safe import module hook win32com
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named win32com
8695 INFO: Processing pre-safe import module hook six.moves
9489 INFO: Loading module hooks...
9489 INFO: Loading module hook "hook-distutils.py"...
9528 INFO: Loading module hook "hook-sysconfig.py"...
9542 INFO: Loading module hook "hook-xml.py"...
9699 INFO: Loading module hook "hook-pycparser.py"...
9910 INFO: Loading module hook "hook-httplib.py"...
9912 INFO: Loading module hook "hook-pkg_resources.py"...
10494 INFO: Processing pre-safe import module hook win32com
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named win32com
10519 INFO: Processing pre-safe import module hook win32com
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named win32com
最终显示是打包成功了,
23209 INFO: Building EXE from out00-EXE.toc
23231 INFO: Appending archive to ELF section in EXE /opt/spk_m/dist/spk_to_kafka
23280 INFO: Building EXE from out00-EXE.toc completed successfully.
运行打包好的程序spk_to_kafka也没有问题。就是不明白怎么会出现ImportError: No module named win32com这个错误呢?
我自己是没有用到这个库的。是pyinstaller用的?但我是在linux下打包的啊?搞不明白……
|