pip安装错误“没有这样的文件或目录:setup.py" [英] pip installation error "No such file or directory: setup.py"

查看:179
本文介绍了pip安装错误“没有这样的文件或目录:setup.py"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到安装错误,因为pip找不到setup.py.

I'm getting installation error because pip couldn't find setup.py.

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

我收到此错误消息.

Downloading/unpacking https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Downloading tensorflow-0.5.0-cp27-none-linux_x86_64.whl (10.9Mb): 10.9Mb downloaded
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-GdGgbz-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-GdGgbz-build/setup.py'

谁能告诉我如何解决这个问题?

Can anyone tell me how to solve this problem?

谢谢.

推荐答案

来自 https://github.com/tensorflow/tensorflow/issues/56

要键入的命令是"pip install --upgrade pip" ,应为 告诉用户之后,立即将其添加到说明中 源bin/激活"

The command to type is "pip install --upgrade pip", and this should be added to the instructions right after where they tell the user to "source bin/activate"

这篇关于pip安装错误“没有这样的文件或目录:setup.py"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆