zoukankan      html  css  js  c++  java
  • pip download in mainland china

    pip install ...
    

    The command above in p.r.china is awfully slow.

    You can use the command below

    pip install the-library-you-want-to-install --trusted-host http://mirrors.aliyun.com/pypi/simple/
    

    or (the tsinghua mirror is not recommended although most well-known)

    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple the-library-you-want-to-install
    

    or

    pip install -i https://mirrors.zju.edu.cn/pypi/web/simple the-library
    

    or

    pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ the-library
    

      

    It is recommended to install packages via pip commands after activating the conda environment.

    You may also find you cannot create a conda environment using

    conda create -n drl python=3.6
    

      because of connection errors. To fix these errors on Ubuntu, you can create a ~/.condarc and edit it as

    default_channels:
      - https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/r
      - https://anaconda.mirrors.sjtug.sjtu.edu.cn/pkgs/main
    custom_channels:
      conda-forge: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/
      pytorch: https://anaconda.mirrors.sjtug.sjtu.edu.cn/cloud/
    channels:
      - defaults
    

      or

    channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
    ssl_verify: true

      

    Ack: https://www.cnblogs.com/dereen/p/anaconda_tencent_mirrors.html

  • 相关阅读:
    scala中 object 和 class的区别
    scala中的apply方法与unapply方法
    Scala中的样例类详解
    Scala 中下划线的一些魔法
    Hadoop搭建配置参数调优
    设置ESX/ESXi中(Linux)虚拟机从U盘引导启动
    CentOS下编译安装Busybox
    LRU算法简单实现
    Spark 3.0 动态分区裁剪(Dynamic Partition Pruning)
    Hive中的数据分桶以及使用场景
  • 原文地址:https://www.cnblogs.com/cxxszz/p/6900666.html
Copyright © 2011-2022 走看看