zoukankan      html  css  js  c++  java
  • 记录和收藏一些换源的网站,以便日后复制粘贴

    conda 换源
    conda config --remove-key channels 换源default源
    (1)清华源(TUNA)
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    conda config --setshow_channel_urls yes

    (2)中科大源(USTC)
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
    conda config --setshow_channel_urls yes


    pip国内的一些镜像
    默认源:https://pypi.org/simple
    阿里云 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/

    pypi 镜像使用帮助
    临时使用
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
    注意,simple 不能少, 是 https 而不是 http

    设为默认: 升级 pip 到最新的版本 (>=10.0.0) 后进行配置:
    pip install pip -U
    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

    如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip:
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

    yarn
    1、查看一下当前源
    yarn config get registry
    2、切换为淘宝源
    yarn config set registry https://registry.npm.taobao.org
    3、或者切换为自带的
    yarn config set registry https://registry.yarnpkg.com

    npm
    1.临时使用
    npm --registry https://registry.npm.taobao.org install express

    2.持久使用
    npm config set registry https://registry.npm.taobao.org
    npm config get registry

  • 相关阅读:
    WinCMD color命令
    WinCMD if命令(批处理Dos 大于、小于、等于)
    WinCMD 常用命令
    AIFramework基本概念整理
    AICompiler动态shape编译框架
    深度学习编译与优化Deep Learning Compiler and Optimizer
    NNVM Compiler,AI框架的开放式编译器
    Tengine AIFramework框架
    Tvm一些基本技术
    北汽蓝谷和北汽新能源
  • 原文地址:https://www.cnblogs.com/jasonsou/p/12357400.html
Copyright © 2011-2022 走看看