26

Python 2.7 を実行していて、easy_install を使用して scipy をインストールしようとすると、次のエラーが返されます。

Searching for scipy
Reading http://pypi.python.org/simple/scipy/
Reading http://www.scipy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531
Reading http://new.scipy.org/Wiki/Download
Best match: scipy 0.11.0
Downloading http://pypi.python.org/packages/source/s/scipy/scipy-0.11.0.zip#md5=40b700ddde9ddab643b640fff7a9d753
Processing scipy-0.11.0.zip
Running scipy-0.11.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-49BQSz/scipy-0.11.0/egg-dist-tmp-KMjwKy
Running from scipy source directory.
/usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:1425: UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
/usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:1434: UserWarning: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.
  warnings.warn(BlasNotFoundError.__doc__)
/usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:1437: UserWarning: 
    Blas (http://www.netlib.org/blas/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [blas_src]) or by setting
    the BLAS_SRC environment variable.
  warnings.warn(BlasSrcNotFoundError.__doc__)
error: 
    Blas (http://www.netlib.org/blas/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [blas]) or by setting
    the BLAS environment variable.

だから私は実行してBlasとAtalasをインストールしました

apt-get install blas
apt-get install atlas

ただし、easy_install エラーは消えません。

ありがとう!

4

7 に答える 7

30

Ubuntu は、ライブラリ ファイルをかなり風変わりなディレクトリに配置します。 /usr/lib/x86_64-linux-gnu/または何か、アーキテクチャに応じて。このディレクトリを site.cfg ファイルまたは BLAS 環境変数に追加する必要があります。

簡易インストールにヘッダー ファイルも必要な場合は、それぞれの -dev パッケージをインストールする必要があります。

ただし、@pitsanu-swangpheaw が示唆するように、ubuntu パッケージ マネージャーを使用してサイト パッケージ ディレクトリにインストールすることもできます。

sudo apt-get install python-numpy python-scipy
于 2013-01-18T21:48:56.797 に答える
5

Python3 を使用している場合は、次を使用してパッケージをインストールできます。apt-get

sudo apt-get install python3-numpy python3-scipy
于 2015-02-21T14:14:19.720 に答える
4

sudo apt-get install python-scipy私の場合はうまくいきました。

于 2013-01-22T11:47:14.970 に答える
2

実行して問題を解決しました(以前の提案と同様)

apt-get install scipy
于 2013-01-18T22:09:02.370 に答える
0

私は実行してこの問題を解決します:

sudo pip install scipy
于 2017-10-07T10:33:01.513 に答える