Python-使用pip找不到TensorFlow

发布于 2021-02-02 23:15:17

我正在尝试使用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都没有问题。

关注者
0
被浏览
92
1 个回答
  • 面试哥
    面试哥 2021-02-02
    为面试而生,有面试问题,就找面试哥。

    我发现这终于奏效了。

    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



知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看