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/
  • 相关阅读:
    Object Files (.obj)
    使用IIS Microsoft的web服务器和ftp服务器
    关于matlab
    char, signed char, unsigned char的区别
    百度面试
    google笔试题_2011
    ioctl 函数与网络接口
    Unity之热更新:(三)XLua
    C#之设计模式:观察者模式
    C#:委托
  • 原文地址:https://www.cnblogs.com/qqhfeng/p/12152728.html
Copyright © 2011-2022 走看看