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

  • 相关阅读:
    The model backing the 'XXX' context has changed 错误
    MVC5+EF6 入门完整教程四
    MVC5 + EF6 完整入门教程三
    MVC5 + EF6 入门完整教程二
    每日总结9.11
    setTextColor的几个注意事项
    selector使用注意事项
    每日总结9.9
    android popWindow使用注意事项
    有关TextView的drawaleTop属性
  • 原文地址:https://www.cnblogs.com/jasonsou/p/12357400.html
Copyright © 2011-2022 走看看