美文网首页
换源合集

换源合集

作者: 烟雨醉尘缘 | 来源:发表于2018-11-08 20:11 被阅读0次

由于一些众所周知的原因,国内使用国外的一些资源比较慢,所以做了一个换源的集合记录下。

PIP

阿里云 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/

临时换源

pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple

永久换源

修改 ~/.pip/pip.conf (如果没有就创建一个),写入:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

win下面就直接在user目录中创建一个pip目录,如:C:\Users\yourname\pip,新建文件pip.ini,写入:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

收工。

HomeBrew

  1. 替换brew.git
    cd "\$(brew --repo)"
    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
  2. 替换homebrew-core.git
    cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
  3. 替换homebrew-bottles
    3.1 bash用户
    echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
    source ~/.bash_profile
    3.2 zsh用户
    echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
    source ~/.zshrc
  4. 更新
    brew update
    更加详细的可以看这里

相关文章

  • 换源合集

    由于一些众所周知的原因,国内使用国外的一些资源比较慢,所以做了一个换源的集合记录下。 PIP 阿里云 http:/...

  • 解决CocoaPods慢的方案(gem和pod repo换源)

    gem换源 确保只有gems.ruby-china.org源 pod repo换源 默认是GitHub源 我们把它...

  • 换源

    换源有好几个方式我选择使用简单粗暴的YaST 首先打开YaST 先关闭所有的官方软件源尤其是其中一个叫openSU...

  • ubuntu/MacOS 换源信息整合

    ubuntu/MacOS 换源信息整合 0x01 brew换源 1、替换默认源 https://mirrors.u...

  • Ubuntu换源、安装Python3.8

    Ubuntu换源、安装Python3.8 1. ubuntu换源 下面这些是国内主要的镜像源网站。 阿里源 h...

  • Conda 换源和PiP换源

    前言 每次配置实验室的Linux GPU服务器时,都会遇见Conda换源的问题,遂在此记录之。 Conda更换为清...

  • Homebrew Node npm 等

    Homebrew Node 和 npm watchman flow npm 换源 检查换源是否成功 create-...

  • [转载] Windows conda pip 改源

    Windows下conda换源pip换源https://blog.csdn.net/weixin_44201449...

  • conda&jupyter&虚拟环境

    环境版本 win10anaconda:4.9.2(自带jupyter)python:3.8 换源 conda换源使...

  • npm换源

    国内常用的源是淘宝的npm镜像 源地址为: 临时换源: 永久换源: 原文链接:http://www.jianshu...

网友评论

      本文标题:换源合集

      本文链接:https://www.haomeiwen.com/subject/uihgxqtx.html