Python-使用pip找不到TensorFlow

我正在尝试使用pip安装TensorFlow

$ 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都没有问题。

回答:

我发现这终于奏效了。

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,请更改py3为py2url。

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

编辑3:可用车轮包装的网址列表可在此处获得:https : //www.tensorflow.org/install/pip#package-location

以上是 Python-使用pip找不到TensorFlow 的全部内容, 来源链接: utcz.com/qa/430118.html

回到顶部