我正在尝试运行一个需要安装 Numpy 的程序。我以为是,因为如果我尝试sudo apt-get install python-numpy
它会告诉我
sudo apt-get install python-numpy
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-numpy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
但是当我去安装我正在尝试的程序时(在 setup.py 所在的那个程序目录中)我得到:
python setup.py install
Traceback (most recent call last):
File "setup.py", line 20, in <module>
from weblogolib import __version__
File "/home/chris/Documents/IS/Bioinformatics-Software/weblogo-3.3/weblogolib/__init__.py", line 108, in <module>
from numpy import array, asarray, float64, ones, zeros, int32,all,any, shape
ImportError: No module named numpy
当我查看 Python-2.7.3/Lib/site-packages 目录时,里面唯一的东西就是一个 README 文件。那里不应该有 Numpy 的东西(以及其他安装 Python 模块)吗?
我正在使用 Python 2.7 运行 Ubuntu 12.04
使用dpkg -l python-numpy
我得到:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii python-numpy 1:1.6.1-6ubunt Numerical Python adds a fast array facility