[英]Python - py2exe - DeprecationWarning
我已經安裝了python 2.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
我錯了什么? 我該怎么解決?
這不是一個錯誤,它只是一個關於已棄用的類的警告; 在這種情況下,不推薦使用sets
模塊,新代碼現在應該使用內置的set
類。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.