首页 文章

Ubuntu上的TensorFlow安装

提问于
浏览
-1

当我尝试使用命令在Ubunto(vmware映像)上安装TensorFlow机器学习库时:

$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

下载包后我收到此错误:

回溯(最近一次调用最后一次):文件“”,第14行,在IOError中:[Errno 2]没有这样的文件或目录:'/ tmp / patch -GgS7fR-build / setup.py'从命令python setup完成输出 . py egg_info:Traceback(最近一次调用最后一次):文件“”,第14行,在IOError中:[Errno 2]没有这样的文件或目录:'/ tmp / pit -GgS7fR-build / setup.py'

我正在使用pip,python 2.7和Ubuntu 12.04 LTS vmware镜像

有谁可以帮我解决这个错误?

完整 pip.log 文件错误:

------------------------------------------------------------
/usr/bin/pip run on Sun Nov 22 06:06:30 2015
Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  Downloading from URL https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
  Running setup.py egg_info for package from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-GgS7fR-build/setup.py'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

IOError: [Errno 2] No such file or directory: '/tmp/pip-GgS7fR-build/setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 980, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 216, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 255, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1

1 回答

  • 0

    尝试在VMware中安装Ubuntu 14.04并使用相同的命令 .

相关问题