我已经numpy
通过以下方式安装并调用了该库。但为什么它给出了段错误?怎样才能克服这个问题?
[pdubois@mymachine Tools]$ pip install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /misc/u21/pdubois/.python2.7.6/lib/python2.7/site-packages/numpy-1.9.0.dev_688b243-py2.7-linux-x86_64.egg
Cleaning up..
还与easy_install
[pdubois@mymachine ~]$ easy_install-2.7.6 numpy
Searching for numpy
Best match: numpy 1.9.0.dev-688b243
Processing numpy-1.9.0.dev_688b243-py2.7-linux-x86_64.egg
numpy 1.9.0.dev-688b243 is already the active version in easy-install.pth
Installing f2py script to /u21/pdubois/.python2.7.6/bin
Using /misc/u21/pdubois/.python2.7.6/lib/python2.7/site-packages/numpy-1.9.0.dev_688b243-py2.7-linux-x86_64.egg
Processing dependencies for numpy
Finished processing dependencies for numpy
它给了我这个错误:
[pdubois@mymachine Tools]$ python
Python 2.7.6 (default, Feb 4 2014, 10:19:53)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Segmentation fault
同样,当我使用 pydoc 调用它时:
[pdubois@mymachine Tools]$ pydoc numpy
Segmentation fault