Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing scipy library through pip on python 3: "compile failed with error code 1"

I'm trying to install scipy library through pip on python 3.3.5. By the end of the script, i'm getting this error:

Command /usr/local/opt/python3/bin/python3.3 -c "import setuptools, tokenize;file='/private/tmp/pip_build_root/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-9r7808-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/scipy Storing debug log for failure in /Users/dan/.pip/pip.log

like image 210
Daniyal Avatar asked Apr 05 '14 07:04

Daniyal


1 Answers

I was getting the same thing when using pip, I went to the install and it pointed to the following dependencies.

sudo apt-get install python python-dev libatlas-base-dev gcc gfortran g++

like image 185
SterSter Avatar answered Nov 11 '22 06:11

SterSter