setup.py 的内容是:
from distutils.core import setup import py2exe setup(console=['33.py'])
运行命令:python setup.py py2exe
输出为:
c:\python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: the se ts module is deprecated import sets running py2exe *** searching for required modules *** *** parsing results *** creating python loader for extension '_ctypes' (c:\python26\DLLs\_ctypes.pyd -> _ctypes.pyd) creating python loader for extension 'select' (c:\python26\DLLs\select.pyd -> se lect.pyd) creating python loader for extension 'unicodedata' (c:\python26\DLLs\unicodedata .pyd -> unicodedata.pyd) creating python loader for extension 'dnet' (c:\python26\lib\site-packages\dnet. pyd -> dnet.pyd) creating python loader for extension '_hashlib' (c:\python26\DLLs\_hashlib.pyd - > _hashlib.pyd) creating python loader for extension 'bz2' (c:\python26\DLLs\bz2.pyd -> bz2.pyd) creating python loader for extension '_ssl' (c:\python26\DLLs\_ssl.pyd -> _ssl.p yd) creating python loader for extension 'pcap' (c:\python26\lib\site-packages\pcap. pyd -> pcap.pyd) creating python loader for extension 'pyexpat' (c:\python26\DLLs\pyexpat.pyd -> pyexpat.pyd) creating python loader for extension '_multiprocessing' (c:\python26\DLLs\_multi processing.pyd -> _multiprocessing.pyd) creating python loader for extension '_socket' (c:\python26\DLLs\_socket.pyd -> _socket.pyd) *** finding dlls needed *** error: packet: No such file or directory
请问这是什么原因导致的?
Python代码中引用了哪些packet?
import tornado.ioloop
import tornado.web
import tornado.httpserver
import torndb
from scapy.all import *
from tornado.options import define, options 其中的torndb我也已经拷贝到当前目录了
@马僧: 有没有安装python-dev package?
@dudu: 没有安装,请问这个东西是干什么用的?在哪里可以下载,我开发用的是windows系统的pycharm。
@马僧: Google找一找装一装试试