zoukankan      html  css  js  c++  java
  • pip安装笔记(anaconda)

    1、更换python源

      

    mkdir ~/.pip
    cd ~/.pip
    vi pip.conf

      vi编辑内容如下:

    [global] 
    index-url=https://pypi.tuna.tsinghua.edu.cn/simple 
    [install] 
    trusted-host=pypi.tuna.tsinghua.edu.cn disable-pip-version-check = true timeout = 6000 --------------------- 作者:ke1th 来源:CSDN 原文:https://blog.csdn.net/u012436149/article/details/66974668 版权声明:本文为博主原创文章,转载请附上博文链接!
    上述内容中这一段是可选操作
    [install]
    trusted-host=pypi.tuna.tsinghua.edu.cn disable-pip-version-check = true timeout = 6000

      下面是python常用的国内镜像

    新版ubuntu要求使用https源,要注意。
    清华: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/
    --------------------- 
    作者:木盏 
    来源:CSDN 
    原文:https://blog.csdn.net/leviopku/article/details/80113021 
    版权声明:本文为博主原创文章,转载请附上博文链接!

    2、更换anaconda源

      terminal中输入下面语句,添加清华的镜像源到anaconda配置文件中

    conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
    conda config --set show_channel_urls yes

      删除anaconda中的镜像源配置

    conda config --remove channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

      查看anaconda的镜像配置

    conda config --show

      上述参考:https://blog.csdn.net/u012436149/article/details/66974668

            参考2,点

     

     

  • 相关阅读:
    [From 11.1~11.4]事件
    [From 10.1~10.5] 对象和集合初始化器(C#语法糖系列)
    [From 9.3]out和ref关键字
    [From 8.5]转换操作符方法
    将博客搬至CSDN
    QPS 与 TPS 简介
    在cenos中,通过subversion源码进行安装
    no acceptable C compiler found in $PATH
    tgz解压
    程序中的@Override是什么意思?
  • 原文地址:https://www.cnblogs.com/smartmsl/p/10445445.html
Copyright © 2011-2022 走看看