dtl*_*ier 21 python easy-install pip
我在wxpython使用pip.
这是我当前的输出:
[myuserid]% sudo pip install wxpython
Downloading/unpacking wxpython
Downloading wxPython2.8-win64-devel-2.8.11.0-msvc9x64.tar.bz2 (7.2Mb): 7.2Mb downloaded
Running setup.py egg_info for package wxpython
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/myuserid/build/wxpython/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/myuserid/build/wxpython/setup.py'
----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /Users/myuserid/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
pip并且没有问题,所以我得出结论它pip本身正在工作。我也尝试过通过easy_install并得到以下内容:
[myuserid]% sudo easy_install wxpython
install_dir /Library/Frameworks/EPD64.framework/Versions/6.2/lib/python2.6/site-packages/
Searching for wxpython
Reading http://pypi.python.org/simple/wxpython/
Reading http://wxPython.org/
Reading http://wxPython.org/download.php
Best match: wxPython src-2.8.11.0
Downloading http://downloads.sourceforge.net/wxpython/wxPython-src-2.8.11.0.tar.bz2
Processing wxPython-src-2.8.11.0.tar.bz2
error: Couldn't find a setup script in /tmp/easy_install-faZZOn/wxPython-src-2.8.11.0.tar.bz2
Run Code Online (Sandbox Code Playgroud)
wxpython包裹被pip和easy_installpip或 的此类响应easy_install吗?系统配置:
如果需要其他信息,请告知,我会发布。
wxPython中不包含setup.py文件,以便既不easy_install或pip将能够建立这种方式。查看wxPython 网站上的这些说明以及Enthought 网站上的这些说明,以了解如何构建 wxPython。不幸的是,我从未构建过它(我不使用 Python 的 Enthought 版本),因此我无法为您提供更多帮助。祝你好运!
小智 6
我不使用 EPD,但我遇到了同样的问题。原来Homebrew有一个公式可以安装wxWidget和wxPython. 它就像一个魅力。运行以下命令:
brew install --python wxmac
Run Code Online (Sandbox Code Playgroud)
您似乎对此很陌生...欢迎!
Enthought 的人员为您构建了 EPD,但仍然没有弄清楚如何为 64 位 Python 可靠地构建 wxPython,请参见此处:
http://www.enthought.com/products/epdfaq.php#mac
所以,你正在踏入困难的水域。你考虑过走Qt路线吗?所有 TraitsUI 支持的应用程序都可以轻松移植到 Qt。目前,我喜欢 Homebrew 与 EPD 交互的外观(例如安装 pyQt),但还没有定论(还没有这样做)。我也会发布一个链接,但我目前是 1 分用户......
另一种可能性是同时安装 32 位 EPD,其中已包含 wxPython。然后,您可以使用 32 位 Python 进行可视化,使用 64 位 Python 进行严格的数字运算。
如果您坚持安装 wxPython,请注意您将无法链接 Carbon 版本(它很稳定,但只有 32 位)。相反,您需要使用 wxCocoa(实验性的,64 位)。至少,这是我的理解。Enthought 的人没有提到 wxCocoa,如果有破损我也不会感到惊讶。TraitsUI 很复杂且难以调试,所以如果您走这条路,请预先警告!
| 归档时间: |
|
| 查看次数: |
50821 次 |
| 最近记录: |