我已经安装了Python2.6和新版本的py2exe。
hello.py
print "Hello from py2exe"setup.py
from distutils.core import setup
import py2exe
setup(
# The first three parameters are not required, if at least a
# 'version' is given, then a versioninfo resource is built from
# them and added to the executables.
version = "0.5.0",
description = "py2exe sample script",
name = "py2exe samples",
# targets to build
windows = ["test_wx.py"],
console = ["hello.py"],
)我已经在控制台中尝试过了
python setup.py install但是我得到了这个错误信息
D:\Python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated
import sets
running install
running build
running install_egg_info
Removing D:\Python26\Lib\site-packages\py2exe_samples-0.5.0-py2.6.egg-info
Writing D:\Python26\Lib\site-packages\py2exe_samples-0.5.0-py2.6.egg-info我做错了什么?我怎么才能修复它?
发布于 2011-01-24 16:18:31
这不是一个错误,它只是一个关于弃用类的警告;在这种情况下,sets模块是弃用的,新代码现在应该使用内置的set类。
https://stackoverflow.com/questions/4779887
复制相似问题