gpt4 book ai didi

python - 带有深思熟虑的冠层的 scipy

转载 作者:行者123 更新时间:2023-11-30 23:35:42 25 4
gpt4 key购买 nike

我正在评估 Enthought 包。我在Ubuntu中安装了32位canopy(从https://www.enthought.com/downloads/下载)。

$ sudo bash canopy-1.0.1-rh5-32.sh

经测试,我在 /usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages 中没有看到 scipy:

$ /usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/bin/python 
Enthought Canopy Python 2.7.3 | 32-bit | (default, Mar 25 2013, 15:45:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy


>>> from pylab import*
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages/matplotlib/pylab.py", line 265, in <module>
from matplotlib.pyplot import *
File "/usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages/matplotlib/pyplot.py", line 97, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
globals(),locals(),[backend_name])
File "/usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages/matplotlib/backends/backend_wxagg.py", line 23, in <module>
import backend_wx # already uses wxversion.ensureMinimal('2.8')
File "/usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages/matplotlib/backends/backend_wx.py", line 52, in <module>
raise ImportError(missingwxversion)


ImportError: Matplotlib backend_wx and backend_wxagg require wxversion, which was not found.

请帮我:如何安装Python Canopy(包括scipy、matplotlib等)?我必须手动安装它们吗?我以为安装程序 shell 脚本会自动安装所有这些。我错过了什么吗?

$ uname -a
Linux sree 3.0.0-32-generic-pae #51-Ubuntu SMP Thu Mar 21 16:09:48 UTC 2013 i686 i686 i386 GNU/Linux

最佳答案

Scipy 安装到不同的 virtual environment 中(~/Enthought/Canopy_64bit/System/)。一般来说,您应该运行 ~/Enthought/Canopy_64bit/User/bin/python 中提供的 Python,如 here 中所述。 。另请参阅this article有关如何将 Canopy 设置为默认 Python 的信息

关于python - 带有深思熟虑的冠层的 scipy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17136122/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com