1

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

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

经过测试,我看不到 scipy /usr/local/Canopy/appdata/canopy-1.0.0.1160.rh5-x86/lib/python2.7/site-packages

$ /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
4

1 回答 1

3

Scipy安装到不同的虚拟环境( ~/Enthought/Canopy_64bit/System/)。一般来说,您应该运行此处~/Enthought/Canopy_64bit/User/bin/python描述的 Python 。另请参阅本文以获取有关如何使 Canopy 成为默认 Python 的信息

于 2013-06-16T18:30:41.787 回答