1. 程式人生 > >caffe2安裝Python依賴項失敗

caffe2安裝Python依賴項失敗

按照caffe2的官方教程,配置caffe2的依賴項時報錯。這篇部落格記錄了配置時出現問題,並且給出了一些解決辦法

pip install jupyter 失敗

pip install scikit-image 失敗

錯誤提示:

error: library dfftpack has Fortran sources but no Fortran compiler found

解決辦法

需要先安裝關聯庫

matplotlib>=1.3.1
numpy>=1.7.2
scipy>=0.9.0
six>=1.7.3
networkx>=1.8
pillow
>=2.1.0 dask>=0.5.0 sudo pip install networkx sudo pip install dask 之後安裝 sudo pip install scikit-image

pip install scipy 失敗

錯誤提示:

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/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-7gUbTC-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/scipy Storing debug log for failure in /home/turtlebot/.pip/pip.log

解決辦法:

sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get
install gfortran sudo apt-get install python-scipy