Ubuntu1804系统(xavier)安装tensorflow时报与h5py相关的错误的解决办法

  • 在xavier上安装tensorflow(1.12-gpu版本)过程中报错的解决方法:
  1. 安装步骤:

          第一步:sudo apt-get install python-pip python-dev

          第二步:sudo pip install --upgrade pip

          第三步:sudo pip install tensorflow_gpu-1.12.0rc2+nv18.11-cp27-cp27mu-linux_aarch64.whl

安装时报错如下:

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-PGEWMl/h5py/setup.py'"'"'; __file__='"'"'/tmp/pip-install-PGEWMl/h5py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-hJGAk5/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/h5py
         cwd: /tmp/pip-install-PGEWMl/h5py/
    Complete output (64 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-2.7
    creating build/lib.linux-aarch64-2.7/h5py
    copying h5py/h5py_warnings.py -> build/lib.linux-aarch64-2.7/h5py
    copying h5py/__init__.py -> build/lib.linux-aarch64-2.7/h5py
    copying h5py/version.py -> build/lib.linux-aarch64-2.7/h5py
    copying h5py/ipy_completer.py -> build/lib.linux-aarch64-2.7/h5py
    copying h5py/highlevel.py -> build/lib.linux-aarch64-2.7/h5py
    creating build/lib.linux-aarch64-2.7/h5py/_hl
    copying h5py/_hl/base.py -> build/lib.linux-aarch64-2.7/h5py/_hl
    copying h5py/_hl/__init__.py -> build/lib.linux-aarch64-2.7/h5py/_hl
    copying h5py/_hl/compat.py -> build/lib.linux-aarch64-2.7/h5py/_hl
    copying h5py/_hl/selections2.py -> build/lib.linux-aarch64-2.7/h5py/_hl
    c

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值