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