python wxpython的Easy_install有“安装脚本”错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/477573/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Easy_install of wxpython has "setup script" error
提问by physicsmichael
I have an install of python 2.5 that fink placed in /sw/bin/. I use the easy install command
我在 /sw/bin/ 中安装了 fink 的 python 2.5。我使用简易安装命令
sudo /sw/bin/easy_install wxPython
to try to install wxpython and I get an error while trying to process wxPython-src-2.8.9.1.tab.bz2 that there is not setup script. Easy-install has worked for several other installations until this one. Any help on why it's busting now?
尝试安装 wxpython 并且在尝试处理没有安装脚本的 wxPython-src-2.8.9.1.tab.bz2 时出现错误。在此之前,轻松安装已适用于其他几种安装。关于为什么它现在崩溃的任何帮助?
EDIT: The error occurs before dumping back to shell prompt.
编辑:错误发生在转储回 shell 提示之前。
Reading http://wxPython.org/download.php
Best match: wxPython src-2.8.9.1
Downloading http://downloads.sourceforge.net/wxpython/wxPython-src-2.8.9.1.tar.bz2
Processing wxPython-src-2.8.9.1.tar.bz2
error: Couldn't find a setup script in /tmp/easy_install-tNg6FG/wxPython-src-2.8.9.1.tar.bz2
阅读http://wxPython.org/download.php
最佳匹配:wxPython src-2.8.9.1
下载http://downloads.sourceforge.net/wxpython/wxPython-src-2.8.9.1.tar.bz2
处理 wxPython- src- 2.8.9.1.tar.bz2
错误:在 /tmp/easy_install-tNg6FG/wxPython-src-2.8.9.1.tar.bz2 中找不到安装脚本
采纳答案by Martin v. L?wis
There is a simple reason why it's busting: there just is no setup.py in wxPython; wxPython does not use distutils for installation.
它被破坏的原因很简单:wxPython 中没有 setup.py;wxPython 不使用 distutils 进行安装。
Instead, read the file README.1st.txt in source distribution for instruction on how to install wxPython.
相反,阅读源代码分发中的文件 README.1st.txt 以获取有关如何安装 wxPython 的说明。
回答by Evan Plaice
wxPython 2.8.9.1 does use distutils
wxPython 2.8.9.1 确实使用了 distutils
Under 'wxPython-src-2.8.9.1/wxPython/' run:
在“wxPython-src-2.8.9.1/wxPython/”下运行:
sudo python setup.py install
To install wxPython. At least that's what the INSTALL.txt says for that specific version.
安装 wxPython。至少那是 INSTALL.txt 对那个特定版本所说的。