使用pip找不到TensorFlow [英] TensorFlow not found using pip

查看:66
本文介绍了使用pip找不到TensorFlow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pip安装TensorFlow:

I'm trying to intstall TensorFlow using pip:

$ pip install tensorflow --user
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

我做错了什么?到目前为止,我使用Python和pip都没有问题.

What am I doing wrong? So far I've used Python and pip with no issues.

推荐答案

我发现它终于可以工作了.

I found this to finally work.

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

已在Windows(8、8.1、10),Mac和Linux上进行过测试.根据您的配置将python3更改为python.如果您使用的是Python 2.x,请在网址中将py3更改为py2.

Edit 1: This was tested on Windows (8, 8.1, 10), Mac and Linux. Change python3 to python according to your configuration. Change py3 to py2 in the url if you are using Python 2.x.

如果有人需要,则列出不同版本: https://storage.googleapis.com/tensorflow

Edit 2: A list of different versions if someone needs: https://storage.googleapis.com/tensorflow

可用的滚轮套件的网址列表在此处提供: https://www.tensorflow.org/install/pip#package-location

Edit 3: A list of urls for the available wheel packages is available here: https://www.tensorflow.org/install/pip#package-location

这篇关于使用pip找不到TensorFlow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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