2014-04-05 61 views
7

我試圖通過Python在python 3.3.5上安裝scipy庫。由腳本結束時,我得到這個錯誤:在python 3上通過pip安裝scipy庫時出錯:「編譯失敗,出現錯誤代碼1」

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

+0

解釋你看'/用戶/張丹/將該.pip/pip.log'? – Hyperboreus

+0

安裝收集的軟件包:scipy 爲scipy運行setup.py安裝 運行命令/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().export('\ r \ n','\ n'),__file blas_opt_info: blas_mkl_info: 庫[mkl,vml,guide'not in ['/usr/local/Cellar/python3/3.3.5/Frameworks/Python.framework/Versions/3.3/lib','/ usr/local/lib','/ usr/lib'] NOT AVAILABLE – Daniyal

+0

blas_mkl_info:libraries mkl,vml,guide not found。這是一個依賴性問題嗎?我如何獲得這些庫? – Daniyal

回答

17

我得到同樣的事情安裝當使用pip時,我去了安裝,它指向以下依賴項。

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

+2

我得到了OP的錯誤,但是使用Python-pip 2.7。允許我安裝。 – notconfusing

+0

謝謝,這個完美適用於Python 3.4。 – balu

+0

但是,這種解決方案只適用於Ubuntu! –

3
$ python3 -m pip install --upgrade pip 
$ python3 -m pip install scipy 

爲我工作!有相同的確切問題!

相關問題