programing

pip로 SciPy 설치

new-time 2020. 5. 7. 22:22
반응형

pip로 SciPy 설치


사용하여

NumPy

pip

와 함께 설치할 수 있습니다

pip install numpy

.

SciPy

와 비슷한 가능성이 있습니까? (

pip install scipy

작동하지 않습니다.)


최신 정보

SciPy 패키지는 이제

pip

!


pip가 검색 하는 Python Package Index

easy_install

목록

문제 있음 나타냅니다 .

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

그러나 모든 것이 상실되지는 않는다. SVN ( Subversion ), Git , MercurialBazaar 리포지토리

pip

에서 설치할 수 있습니다 . SciPy는 SVN을 사용합니다.

pip install svn+http://svn.scipy.org/svn/scipy/trunk/#egg=scipy

업데이트 (2012 년 12 월) :

pip install git+https://github.com/scipy/scipy.git

NumPy는 종속성이므로 설치해야합니다.


전제 조건 :

sudo apt-get install build-essential gfortran libatlas-base-dev python-pip python-dev
sudo pip install --upgrade pip

실제 패키지 :

sudo pip install numpy
sudo pip install scipy

선택적 패키지 :

sudo pip install matplotlib   OR  sudo apt-get install python-matplotlib
sudo pip install -U scikit-learn
sudo pip install pandas

src


Ubuntu 10.04 (Lucid)

pip install scipy

에서 특히 다음과 같은 일부 종속성을 설치 한 후 (virtuenv 내에서) 성공적으로 수행 할 수 있습니다 .

$ sudo apt-get install libamd2.2.0 libblas3gf libc6 libgcc1 libgfortran3 liblapack3gf libumfpack5.4.0 libstdc++6 build-essential gfortran libatlas-sse2-dev python-all-dev

Windows에 scipy를 설치하려면 다음 지침을 따르십시오.1 단계 :이 링크

http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

눌러 scipy .whl 파일 (예 : scipy-0.17.0-cp34-none-win_amd64.whl)을 다운로드하십시오.2 단계 : 명령 프롬프트 (cd folder-name)에서 다운로드 파일이있는 디렉토리로 이동하십시오.3 단계 :이 명령을 실행하십시오.

pip install scipy-0.17.0-cp27-none-win_amd64.whl

나는 위의 모든 것을 시도했지만 아무것도 효과가 없었다. 이것은 내 모든 문제를 해결했습니다.

pip install -U numpy

pip install -U scipy

패키지 업그레이드

-U

pip install

요청하는 옵션에 유의하십시오 . 패키지가 없으면 패키지가 이미 설치되어 있으면 이를 알리고 아무 것도하지 않고 종료합니다.

pip

 


시스템 패키지로 BLAS, LAPACK 및 GCC Fortran을 먼저 설치하면 (

Arch Linux를 사용하고 있음

) SciPy를 다음과 같이 설치할 수 있습니다.

pip install scipy

Fedora에서는 다음과 같이 작동합니다.

sudo yum install -y python-pip
sudo yum install -y lapack lapack-devel blas blas-devel 
sudo yum install -y blas-static lapack-static
sudo pip install numpy
sudo pip install scipy

당신이 어떤 나타나면

public key

다운로드하는 동안 오류를 추가

--nogpgcheck

하는 매개 변수로

yum

, 예를 들어 :

yum --nogpgcheck install blas-devel

Fedora

23

이상에서는을

dnf

대신 사용하십시오

yum

.


Arch Linux 사용자의 경우 :

pip install --user scipy

다음과 같은 아치 패키지가 설치되어야합니다.

  • gcc-fortran
  • blas
  • lapack

Ubuntu 용 애드온 (Ubuntu 10.04 LTS (Lucid Lynx)) :저장소가 이동했지만

pip install -e git+http://github.com/scipy/scipy/#egg=scipy

나를 위해 실패했습니다 ... 다음 단계를 통해 마침내 해결되었습니다 (

python3

파이썬 3.2.2에 대한 링크가있는 가상 환경의 루트로 ). 우분투 종속성 설치 (elaichi 참조), 복제 NumPy 및 SciPy :

git clone git://github.com/scipy/scipy.git scipy

git clone git://github.com/numpy/numpy.git numpy

 

numpy

폴더 내에 NumPy를 빌드하십시오 .

python3 setup.py build --fcompiler=gnu95

Install SciPy (within the scipy folder):

python3 setup.py install

In my case, it wasn't working until I also installed the following package : libatlas-base-dev, gfortran

 sudo apt-get install libatlas-base-dev gfortran

Then run pip install scipy


  1. install python-3.4.4
  2. scipy-0.15.1-win32-superpack-python3.4
  3. apply the following commend doc
py -m pip install --upgrade pip
py -m pip install numpy
py -m pip install matplotlib
py -m pip install scipy
py -m pip install scikit-learn

The answer is yes, there is.

First you can easily install numpy use commands:

pip install numpy

Then you should install mkl, which is required by Scipy, and you can download it here

After download the file_name.whl you install it

C:\Users\****\Desktop\a> pip install mkl_service-1.1.2-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\mkl_service-1.1.2-cp35-cp35m-win32.whl 
Installing collected packages: mkl-service    
Successfully installed mkl-service-1.1.2

Then at the same website you can download scipy-0.18.1-cp35-cp35m-win32.whl

Note:You should download the file_name.whl according to you python version, if you python version is 32bit python3.5 you should download this one, and the "win32" is about your python version, not your operating system version.

Then install file_name.whl like this:

C:\Users\****\Desktop\a>pip install scipy-0.18.1-cp35-cp35m-win32.whl
Processing c:\users\****\desktop\a\scipy-0.18.1-cp35-cp35m-win32.whl
Installing collected packages: scipy
Successfully installed scipy-0.18.1

Then there is only one more thing to do: comment out a specfic line or there will be error messages when you imput command "import scipy".

So comment out this line

from numpy._distributor_init import NUMPY_MKL  # requires numpy+mkl

in this file: your_own_path\lib\site-packages\scipy__init__.py

Then you can use SciPy :)

Here tells you more about the last step.

Here is a similar anwser to a similar question.


Besides all of these answers, If you install python of 32bit on your 64bit machine, you have to download scipy of 32-bit irrespective of your machine. http://www.lfd.uci.edu/~gohlke/pythonlibs/ In the above URL you can download the packages and command is: pip install


For gentoo, it's in the main repository: emerge --ask scipy


You can also use this in windows with python 3.6 python -m pip install scipy

참고URL : https://stackoverflow.com/questions/2213551/installing-scipy-with-pip

반응형