私はPython 2.6とpy2exeの新しいバージョンをインストールしました。Python - py2exe - DeprecationWarning
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
どうしたのですか?どうすれば修正できますか?
1. EXEファイルをビルドするときに 'python setup.py install'を実行するのはなぜですか? 2.警告の何が間違っているのですか?setsモジュール*は組み込みの 'set'と' frozenset'タイプに置き換えられているので廃止予定です。 py2exeがまだどこかで使っているようです。 – AndiDog
はい、コースから!あなたは正しいです、私は間違ったコマンドを入力します。私は 'python setup.py py2exe'を使用しなければなりません。 – Meloun
あなたはより表現力のあるタイトルを書くことができますか?将来の検索のために、あなたは知っています。 – bluish