zoukankan      html  css  js  c++  java
  • Windows下Pycharm安装Tensorflow:ERROR: Could not find a version that satisfies the requirement tensorflow

    今天在Windows下通过Pycharm安装Tensorflow时遇到两个问题:

    使用pip安装其实原理都相同,只不过Pycharm是图形化的过程!

    1、由于使用国外源总是导致Timeout

    解决方法是在Pycharm中添加清华源 https://mirrors.aliyun.com/pypi/simple/(或者其他的国内源)

    2、替换成清华源后安装报错:

    ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
    ERROR: No matching distribution found for tensorflow

    产生原因:

    1. Tensoflow仅仅支持Python 3.5和Python 3.6。
    2. Tensoflow仅仅支持64位版本的Python。

    解决方法:安装对应版本的Python

    可以看到Tensorflow已经安装成功

    有个问题是这样通过Pycharm安装默认是2.0.0版本,我在Pycharm中没有看到选择安装版本的功能,如果需要安装1.x.x版本的可以在命令行用pip安装:

    pip3 install tensorflow==1.13.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

  • 相关阅读:
    28.Implement strStr()【leetcod】
    35. Search Insert Position【leetcode】
    27. Remove Element【leetcode】
    20. Valid Parentheses【leetcode】
    14. Longest Common Prefix【leetcode】
    Java的String中的subString()方法
    charAt()的功能
    spring整合mybatis
    AOP
    代理模式
  • 原文地址:https://www.cnblogs.com/Irvingcode/p/12010154.html
Copyright © 2011-2022 走看看