Tôi có Python 2.7 chạy và cố gắng cài đặt scipy bằng cách sử dụng easy_install trả về lỗi sau đây:Cài đặt scipy trên Ubuntu
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.
Vì vậy, tôi cài đặt Blas và Atalas bằng cách thực hiện
apt-get install blas
apt-get install atlas
Tuy nhiên, Lỗi easy_install không biến mất.
Cảm ơn!
Bạn thử? "sudo apt-get cài đặt python-numpy python-scipy" –
Tôi đã cài đặt SciPy trên máy Mac của mình bằng Trình cài đặt gói Python và không nhớ có bất kỳ sự cố nào. Bất kỳ lý do cụ thể bạn không thể thử cài đặt pip (Tôi nghĩ rằng pip easy_install hoạt động), và làm việc từ đó? – BenDundee
Sử dụng apt-get install scipy Tôi nhận được: E: Không thể tìm thấy gói python-numpy –