1
如何为python安装numpy和scipy?
我很累尝试为phyton 2.7.5安装numpy和scipy,我需要此版本的python,因为我的最终目标是安装类(http://class-code.net/)和montepython(http:// montepython .net /)。 (我有Ubuntu 12.04) 当我尝试导入numpy或scipy时,每次都会出现以下错误: $ phyton2.7 >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 137, in <module> import add_newdocs File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 9, in <module> from numpy.lib import add_newdoc File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 4, in <module> from type_check …