zoukankan      html  css  js  c++  java
  • 修改Python的镜像源

    Mac OS下修改Python的镜像源

    步骤:

    切换到家目录

    创建目录 .pip 并切换到该目录

    创建 pip.conf 文件并写入配置信息

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

    以上采用的是 清华大学 的镜像源,经过测试比较稳定

    也可以用其他:

    清华:https://pypi.tuna.tsinghua.edu.cn/simple

    阿里云:http://mirrors.aliyun.com/pypi/simple/

    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

    华中理工大学:http://pypi.hustunique.com/

    山东理工大学:http://pypi.sdutlinux.org/ 

    豆瓣:http://pypi.douban.com/simple/

    cd ~
    
    mkdir .pip
    
    cd .pip
    
    touch pip.conf

    vim pip.conf # 使用vim写入配置信息
  • 相关阅读:
    3、UML中的类图及类图之间的关系
    2、GoF的23种设计模式
    1、软件设计模式概念
    枚举
    泛型
    MySQL
    蚁群算法MATLAB解VRP问题
    蚁群算法MATLAB解TSP问题
    模拟退火解TSP问题MATLAB代码
    模拟退火学习
  • 原文地址:https://www.cnblogs.com/qiutenglong/p/10841401.html
Copyright © 2011-2022 走看看