zoukankan      html  css  js  c++  java
  • 解决国内安装tensorflow, opencv等安装不成功或下载太慢问题(亲自测试了一下,清华大学的超级快(使用后面带-i的方法,无需修改默认下载地址)。我等一晚上无法下载的,3秒内解决问题)

    解决国内安装tensorflow, opencv等安装不成功或下载太慢问题

    复制自博客:https://blog.csdn.net/jorg_zhao/article/details/80075293

    1.安装tensorflow官方方法与使用国内源方法

    1.1 官方安装方法-适用FQ
    tensorflow安装方法比较常见,参考谷歌的官方教程,安装方法如下:

    python2版本的安装
    pip install --upgrade tensorflow      # for Python 2.*
    pip install --upgrade tensorflow-gpu  # for Python 2.* and GPU
    python3版本的安装
    pip3 install --upgrade tensorflow     # for Python 3.*
    pip3 install --upgrade tensorflow-gpu # for Python 3.* and GPU
    .2 国内源方法-无需FQ

    但是国内网络问题,网速非常慢,如果没有FQ,可以按照下面方法快速安装

    # python2版本的快速安装
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow      # for Python 2.*
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow-gpu  # for Python 2.* and GPU
    # python3版本的快速安装
    pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow     # for Python 3.*
    pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow-gpu # for Python 3.* and GPU
    以上是使用清华的镜像源地址,也可使用下面的镜像地址替换清华源地址:
     
    阿里云 
    http://mirrors.aliyun.com/pypi/simple/
     
    中国科技大学 
    https://pypi.mirrors.ustc.edu.cn/simple/
     
    豆瓣(douban) 
    http://pypi.douban.com/simple/
     
    清华大学 
    https://pypi.tuna.tsinghua.edu.cn/simple/
     
    中国科学技术大学 
    http://pypi.mirrors.ustc.edu.cn/simple/
  • 相关阅读:
    Windows Server 2019 mmc无法创建单元
    .NET 设置IE代理
    检测WebService是否存在
    C#读取图片像素
    23种设计模式之简单工厂
    WinForm笔记一:文本框只允许输入数字
    ADO.NET笔记(一)XML导入导出和数据库
    winform中文本框的一些案例
    C#中的二进制序列化和Json序列化
    文件流操作(FileStream,StreamReader,StreamWriter)
  • 原文地址:https://www.cnblogs.com/qqhfeng/p/12152728.html
Copyright © 2011-2022 走看看