scipy stumbles with pip install on python 2.7.8

When using python 2.7.8 under the pyenv virtualenv @ Mavericks environment, I encountered a phenomenon that an error occurred with pip install scipy and it could not be installed. I was able to install it with python 2.7.5 or 3.4.1 without any problems.

Cause

Running pip install scipy usually downloads the wheel and installs it without compiling. In python 2.7.5 and 3.4.1, wheel is downloaded and installed without any problem. However, with python 2.7.8, the source code tar.gz is downloaded instead of wheel for some reason, and compilation starts. At that time, scipy's numpy dependency is not processed properly and an error occurs. scipy bug?

Solution 1

Give up using Python 2.7.8 and use 2.7.5. Since it is installed using the wheel, there are no dependency problems. Even if you install the module using scipy, it will not be traversed.

Solution 2 (unconfirmed)

You can clear the dependency by installing numpy first and then scipy. However, I get angry that I need a Fortran compiler when installing scipy. From here onward https://gist.github.com/goldsmith/7262122 There is a procedure in, but I have not tried it.

Recommended Posts

scipy stumbles with pip install on python 2.7.8
Install Python 2.7.9 and Python 3.4.x with pip.
[Python Windows] pip install with Python version
Install python on xserver to use pip
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Install python on WSL
Install pip on Mavericks
Install Python on Pidora.
Install Scrapy on python3
Install Python on Mac
Error with pip install
Install Voluptuous with Python 2.5
Install python on windows
Install Python 2.7.3 on CentOS 5.4
Install python with pyenv
Install Python 3.3 on Ubuntu 12.04
Install Python 3.4 on Mac
Install pip / pip3 on Ubuntu
Install scikit.learn with pip
Install Python 3.6 on Docker
I can't install Dask with pip on Ubuntu
Install and run Python3.5 + NumPy + SciPy on Windows 10
[Ansible] Install dnf on Centos7 with Python3 interpreter
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Run pip install on MacOS Python 3.7 or later
Install Python 3 on MacOS Catalina (with Homebrew only)
Install ZIP version Python and pip on Windows 10
Install the python module with pip on a server without root privileges
Install Python 3.8 on RHEL 8 (AppStream)
Install watchdog on Windows + Python 3.3
Install Python environment with Anaconda
Install pygame on python3.4 on mac
Install selenium on Mac and try it with python
Install external libraries with Python
Install github repository with pip
Install pandas 0.14 on python3.4 [on Mac]
Install OpenCV on Ubuntu + python
Python --Install MySQLDB on EC2
Install Python 3.8 on CentOS 8 (AppStream)
[Python] [Chainer] [Windows] Install Chainer on Windows
Make it easy to install the ROS2 development environment with pip install on Python venv
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
[Road to intermediate Python] Install packages in bulk with pip
Until you can install your own Python library with pip
Install python3 and scientific calculation library on Ubuntu (virtualenv + pip)
Install Jupiter Notebook on Windows with pip in proxy environment
Install Python Pillow on Amazon Linux
Harmonic mean with Python Harmonic mean (using SciPy)
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python3 on Sakura server (FreeBSD)
Pip install --ugrade pip fails on Windows
Install Python from source with Ansible
Install python2.7 on windows 32bit environment
Permission denied with pip install pyopenssl
Install xgboost (python version) on Windows
pip install mysql-Error handling during python
Install Pytorch on Blender 2.90 python on Windows
Install Python 3.7 Anaconda on MAC, but Python 2
Install Scipy on Mac OS Sierra
Install python3 on Mac (El Capitan)
Install the Python plugin with Netbeans 8.0.2