Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't install scipy - freezes on "Running setup.py install for scipy"

Tags:

python

pip

scipy

when I run

sudo pip install -U scipy 

it is first downloaded and then it goes on to show

Running setup.py install for scipy 

but it freezes there. I tried upgrading pip itself. Worked fine. My pip version is 1.5.4

The only error i get is InsecurePlatforWarning. The complete output looks like this:

tom@tom-ThinkPad-Edge-E430:~$ sudo pip install -U scipy The directory '/home/tom/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/tom/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting scipy /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Downloading scipy-0.16.1.tar.gz (12.2MB)    100% |████████████████████████████████| 12.2MB 32kB/s  Installing collected packages: scipy    Running setup.py install for scipy 
like image 211
Tom83B Avatar asked Nov 21 '15 21:11

Tom83B


People also ask

How long does SciPy take to install?

Building scipy from source takes about 1hr20. Pre-compiled wheels are available from piwheels.org, so you can install it from there without building yourself.

How do I install a SciPy module in Python?

Type and run pip install scipy in the command prompt. This will use the Python Package index, and install the core SciPy packages on your computer. You can also install other core packages like Numpy and Matplotlib by using the pip install numpy and pip install matplotlib commands.

Can I install SciPy with pip?

Method 1: Using pip to install Scipy Package Step 1: Install the latest Python3 in MacOS. Step 2: Check if pip3 and python3 are correctly installed. Step 3: Upgrade your pip to avoid errors during installation. Step 4: Enter the following command to install Scipy using pip3.


2 Answers

It took unexpectedly long, but it finished after several minutes. So problem solved.

like image 196
Tom83B Avatar answered Oct 13 '22 18:10

Tom83B


Do

sudo apt-get install python-scipy 

for python2

or

sudo apt-get install python3-scipy 

if you don't care about the version. Installs within a few seconds on RPI3

like image 35
Anand C U Avatar answered Oct 13 '22 19:10

Anand C U