【问题标题】:Tensorflow installation error: GPU version on Ubuntu 16.04Tensorflow 安装错误:Ubuntu 16.04 上的 GPU 版本
【发布时间】:2016-11-11 12:44:44
【问题描述】:

我尝试通过以下 2 种方法安装 tensorflow 的 gpu 版本,但在最后一步得到相同的错误:

https://alliseesolutions.wordpress.com/2016/09/08/install-gpu-tensorflow-from-sources-w-ubuntu-16-04-and-cuda-8-0-rc/

https://pythonprogramming.net/how-to-cuda-gpu-tensorflow-deep-learning-tutorial/

错误是

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 328, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 748, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 448, in _prepare_file
    req_to_install, finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 387, in _check_skip_installed
    req_to_install.check_if_exists()
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 1011, in check_if_exists
    self.req.project_name
AttributeError: 'Requirement' object has no attribute 'project_name'

【问题讨论】:

    标签: python tensorflow ubuntu-16.04


    【解决方案1】:

    最好的办法是使用我们的官方安装程序: https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html

    对于构建/安装方面的问题,我们会在 http://github.com/tensorflow/tensorflow/issues 上监控问题。

    【讨论】:

      【解决方案2】:

      我想我找到了。这是因为旧的 pip 版本。我无法更新目标文件夹中的 pip,因为我使用的是 anaconda2。一旦我切换回默认的 python2.7 并升级了 pip,它就可以工作了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-06-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-03
        • 1970-01-01
        • 2019-06-04
        • 2020-04-26
        相关资源
        最近更新 更多