pycaffe 搭建:常见问题解决办法
2017-06-21 19:37
295 查看
配置pycaffe:
安装依赖库:
编译:
添加~/caffe/python到$PYTHONPATH:
测试是否可以引用: some time should run in the directury of: gaoenyang@gaoenyang-Lenovo:~/Downloads/caffe-master/python
问题:
问题:
出现了如下的错误,说我找不到skimage.io模块。
import skimage.io
ImportError: No module named skimage.io
解决办法:
sudo pip install scikit-image
安装依赖库:
sudo apt-get install python-numpy python-scipy python-matplotlib python-sklearn python-skimage python-h5py python-protobuf python-leveldb python-networkx python-nose python-pandas python-gflags Cython ipython
sudo apt-get install protobuf-c-compiler protobuf-compiler
编译:
$ cd ~/caffe $ make pycaffe
添加~/caffe/python到$PYTHONPATH:
$ sudo gedit /etc/profile # 添加: export PYTHONPATH=/path/to/caffe/python:$PYTHONPATH $ source /etc/profile # 使之生效
测试是否可以引用: some time should run in the directury of: gaoenyang@gaoenyang-Lenovo:~/Downloads/caffe-master/python
$ python Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import caffe >>>
问题:
ImportError: No module named google.protobuf.internal解决方法:
sudo pip install --upgrade protobuf
问题:
出现了如下的错误,说我找不到skimage.io模块。
import skimage.io
ImportError: No module named skimage.io
解决办法:
sudo pip install scikit-image
相关文章推荐
- Python常见问题解决办法之:环境搭建
- Caffe搭建:常见问题解决办法和ubuntu使用中遇到问题解决方法(持续更新)
- Caffe搭建:常见问题解决办法和ubuntu使用中遇到问题
- openuse12.1搭建HLA以及常见问题解决办法
- Caffe搭建:常见问题解决办法和ubuntu使用中遇到问题解决方法(持续更新)
- Caffe搭建:常见问题解决办法和ubuntu使用中遇到问题(持续更新)
- 解决JBX常见问题最权威的办法(来自borland)
- PHP session常见问题集锦及解决办法总结
- Javamail中的常见中文乱码问题与解决办法(综合)
- 页面常见问题及解决办法
- SQL Server Express常见问题及解决办法
- asp + Access 常见的数据库访问失败问题 Microsoft JET Database Engine 错误 '80004005' 解决办法
- asp + Access 常见的数据库访问失败问题 Microsoft JET Database Engine 错误 '80004005' 解决办法
- 配置交换机常见3个问题及解决办法
- DIV+CSS构建网站时常会出现浏览器不兼容的问题,下面整理了一些常见不兼容问题,及解决办法!
- asp + Access 常见的数据库访问失败问题 Microsoft JET Database Engine 错误 '80004005' 解决办法
- 调试asp.net程序遇见的三个常见问题及其解决办法
- BizTalk Server 2006使用过程中常见的问题及其解决办法
- asp + Access 常见的数据库访问失败问题 Microsoft JET Database Engine 错误 '80004005' 解决办法
- 网通PPPOE常见问题解决办法三