Upon testing I don't see scipy in /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/pythonEnthought 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 linux2Type "help", "copyright", "credits" or "license" for more information.>>> import scipyTraceback (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 脚本会自动安装所有这些.我错过了什么吗?Please help me: how can install the Python Canopy (including scipy, matplotlib etc.)? Do I have to manually install them? I thought the installer shell script installed all these automatically. Am I missing something?$ uname -aLinux sree 3.0.0-32-generic-pae #51-Ubuntu SMP Thu Mar 21 16:09:48 UTC 2013 i686 i686 i386 GNU/Linux推荐答案Scipy 安装到不同的 虚拟环境 (~/Enthought/Canopy_64bit/System/).一般来说,您应该运行 ~/Enthought/Canopy_64bit/User/bin/python 提供的 Python,如 此处.另请查看 这篇文章 获取有关如何将 Canopy 设为默认 Python 的信息Scipy is installed into a different virtual environment (~/Enthought/Canopy_64bit/System/). In general, you should be running the Python available at ~/Enthought/Canopy_64bit/User/bin/python as described here. Also look at this article for information on how to make Canopy your default Python 这篇关于带有深思熟虑的树冠的 scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
05-16 16:14