kel*_*vin 22 python deep-learning caffe
我在Python上安装Caffe Deep Learning Framework时遇到了麻烦:
当我make在caffe目录运行命令时,它说
hdf5.h:没有这样的目录
我已经完成的步骤:
更新和升级我的Ubuntu服务器
安装Python 2.7
运行cp cp Makefile.config.example Makefile.config
在Makefile.config中取消注释cpu_only = 1
如果有人能帮助我,我将不胜感激.
错误信息:
CXX src/caffe/util/hdf5.cpp
in file include from src/caffe/util/hdf5.cpp:1:0:
./include/caffe/util/hdf5.hpp:6:18: fatal error: hdf5.h: No such file or directory
compilation terminated
Makefile:572 recipe for target '.build_release/src/caffe/util/hdf5.o'
failed Make:*** [.build_release/src/caffe/util/hdf5.o] Error 1
Run Code Online (Sandbox Code Playgroud)
alf*_*ini 53
你的Ubuntu安装版本是什么?试试这个.在您Makefile.config尝试附加/usr/include/hdf5/serial/到INCLUDE_DIRS:
--- INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
+++ INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
Run Code Online (Sandbox Code Playgroud)
并重新命名hdf5_hl,并hdf5以hdf5_serial_hl和hdf5_serial在Makefile:
--- LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
+++ LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
Run Code Online (Sandbox Code Playgroud)
更多关于这里的错误修复.
lor*_*isi 21
这个解决方案对我有用 Ubuntu16.04LTS
sudo apt-get install libhdf5-10
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-cpp-11
find /usr -iname "*hdf5.h*"
/usr/include/hdf5/serial/hdf5.h
export CPATH="/usr/include/hdf5/serial/"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
24125 次 |
| 最近记录: |