caffe2安装Python依赖项失败

来源:互联网 发布:淘宝店子账号怎么登陆 编辑:程序博客网 时间:2024/06/06 21:43

按照caffe2的官方教程,配置caffe2的依赖项时报错。这篇博客记录了配置时出现问题,并且给出了一些解决办法


pip install jupyter 失败

ipython 的版本和 python 版本问题
解决办法:
http://blog.csdn.net/tao_627/article/details/44200287


pip install scikit-image 失败

错误提示:

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

解决办法

需要先安装关联库matplotlib>=1.3.1numpy>=1.7.2scipy>=0.9.0six>=1.7.3networkx>=1.8pillow>=2.1.0dask>=0.5.0sudo pip install networkxsudo 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/scipyStoring debug log for failure in /home/turtlebot/.pip/pip.log

解决办法:

sudo apt-get install libblas-devsudo apt-get install liblapack-devsudo apt-get install gfortransudo apt-get install python-scipy
原创粉丝点击