The package SciPy is now available to be installed with pip !
We can install the SciPy library by using pip command; run the following command in the terminal: pip install scipy.
Install SciPy using the pip command Python consists of pip command which is an official package installer. It is a package manager, we can install, delete, or update any package. We need to install pip for using the pip command. Once the requirement is satisfied we can use the pip command in terminal.
After opening up an issue with the SciPy team, we found that you need to upgrade pip with:
pip install --upgrade pip
And in Python 3
this works:
python3 -m pip install --upgrade pip
for SciPy to install properly. Why? Because:
Older versions of pip have to be told to use wheels, IIRC with --use-wheel. Or you can upgrade pip itself, then it should pick up the wheels.
Upgrading pip solves the issue, but you might be able to just use the --use-wheel
flag as well.
Microsoft Windows users of 64 bit Python installations will need to download the 64 bit .whl
of Scipy from here, then simply cd
into the folder you've downloaded the .whl
file and run:
pip install scipy-0.16.1-cp27-none-win_amd64.whl
I face same problem when install Scipy under ubuntu.
I had to use command:
$ sudo apt-get install libatlas-base-dev gfortran
$ sudo pip3 install scipy
You can get more details here Installing SciPy with pip
Sorry don't know how to do it under OS X Yosemite.
In windows 10, most options will not work. Follow these steps:
In Windows 10 with CMD, you cannot download
scipy
directly using most of the well known commands likewget
,cloning scipy github
,pip install scipy
, etcTo install, go to pythonlibs .whl files , and if you are using
python 2.7 32 bit
then downloadnumpy-1.11.2rc1+mkl-cp27-cp27m-win32.whl and scipy-0.18.1-cp27-cp27m-win32.whl
or ifpython 2.7 62 bit
then downloadnumpy-1.11.2rc1+mkl-cp27-cp27m-win_amd64.whl and scipy-0.18.1-cp27-cp27m-win_amd64.whl
After downloading,save the files under your
python directory
, in my case it wasc:\>python27
Then run:
pip install C:\Python27\numpy-1.11.2rc1+mkl-cp27-cp27m-win32.whl
pip install C:\Python27\scipy-0.18.1-cp27-cp27m-win32.whl
Note:
scipy
needs numpy
as dependency, so that's why we are downloading numpy
before scipy
.cp27
in .whl files means that these files are meant for python 2.7
and cp33
stands for python 3.x
speciafically >=3.3After finding this answer for some clues, I got this working by doing
brew install gcc
pip install scipy
(The first of these steps took 96 minutes on my 2011 Mac Book Air so I hope you're not in a hurry!)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With