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

  • 相关阅读:
    88. 合并两个有序数组
    680. 验证回文字符串 Ⅱ
    345. 反转字符串中的元音字母
    633. 平方数之和
    分支程序设计
    scanf函数(初学者)
    输入与输出(初学者)
    C语句详细(初学者)
    算术运算符和算术表达式(初学者)
    变量赋值(初学者)
  • 原文地址:https://www.cnblogs.com/jasonsou/p/12357400.html
Copyright © 2011-2022 走看看