corax
corax

Reputation: 193

Error installing scipy with pip

I have tried installing scipy using pip install scipy. I have installed all the dependencies, gcc-fortran, lapack-devel, blas-devel but to no avail. I created my virtual environment with pyvenv-3.4. Anytime I try installing scipy it hangs after these two lines

 Building wheels for collected packages: scipy
 Running setup.py bdist_wheel for scipy

On one trial, I waited all night and it did not install. My OS is CentOS-7. Thanks for your help.

After getting some help, I tried easy_install scipy. Same problem it stops somewhere and just hangs. I have to depress Ctrl+C to escape. How do I finish installing or reinstall it? Thanks.

Edit:

I finally fixed it by following the instructions here: http://chrisstrelioff.ws/sandbox/2014/06/04/install_and_setup_python_and_packages_on_ubuntu_14_04.html

Upvotes: 1

Views: 4672

Answers (1)

Mike Müller
Mike Müller

Reputation: 85442

I would recommend to use Anaconda. It comes with many packages for scientists. SciPy works out of the box. Just install as user not root. It comes with conda which is an improved virtualenv.

If you don't want all packages of Anaconda use Miniconda

You can create a new environment and install scipy:

conda create -n my_project python=3.4
source activate my_project
conda install scipy

No compilation involved.

Upvotes: 2

Related Questions