在Ubuntu上安装TensorFlow [英] TensorFlow installation on Ubuntu
问题描述
当我尝试使用命令在Ubunto(vmware映像)上安装TensorFlow Machine Learning库时:
When I try to install TensorFlow Machine Learning library on Ubunto (vmware image) using command :
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
下载软件包后,出现此错误:
after downloading the package I got this error :
回溯(最近通话最近): 文件",第14行,在 IOError:[Errno 2]没有这样的文件或目录:'/tmp/pip-GgS7fR-build/setup.py' 来自命令python setup.py egg_info的完整输出: 追溯(最近一次通话):
Traceback (most recent call last): File "", line 14, in 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):
"
IOError:[错误2]没有这样的文件或目录: '/tmp/pip-GgS7fR-build/setup.py'
IOError: [Errno 2] No such file or directory: '/tmp/pip-GgS7fR-build/setup.py'
我正在使用pip,python 2.7和Ubuntu 12.04 LTS vmware映像
I am using pip, python 2.7 and Ubuntu 12.04 LTS vmware image
任何人都可以帮助我解决此错误吗?
Can anyone please help me to solve this error?
完整的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
推荐答案
尝试在VMware中安装Ubuntu 14.04,并使用相同的命令.
Try installing Ubuntu 14.04 in VMware and use the same command.
这篇关于在Ubuntu上安装TensorFlow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!