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

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

问题描述

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

I'm trying to install 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.

推荐答案

我发现这终于奏效了.

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

编辑 1:已在 Windows(8、8.1、10)、Mac 和 Linux 上测试过.根据您的配置将 python3 更改为 python.如果您使用的是 Python 2.x,请将 url 中的 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.

编辑 2:如果有人需要不同版本的列表:https://storage.googleapis.com/tensorflow

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

编辑 3:此处提供了可用车轮包的 url 列表: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天全站免登陆