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
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.
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.
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.
It took unexpectedly long, but it finished after several minutes. So problem solved.
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
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