美文网首页
使用Anaconda无痛解决Python安装相关问题

使用Anaconda无痛解决Python安装相关问题

作者: Traim | 来源:发表于2016-12-12 17:44 被阅读82次
    anaconda.png
    我腾讯的服务器从官网 wget python package 能始终维持在 512B/s。厉害! 大写的服
    所以只能绕道了,曲线救国嘛。
    Anaconda官网
    wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda2-4.2.0-Linux-x86_64.sh
    
    • 查看安装是否正确
    which conda
    
    • 运行脚本
    bash Anaconda2-4.2.0-Linux-x86_64.sh 
    

    • 添加国内源
    # 添加Anaconda的TUNA镜像
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    # TUNA的help中镜像地址加有引号,需要去掉
    
    # 设置搜索时显示通道地址
    conda config --set show_channel_urls yes
    

    conda的一些常用操作如下:

    # 查看当前环境下已安装的包
    conda list
    
    # 查看已安装包
    conda list
    
    # 查找package信息
    conda search scrapy
    
    # 安装
    conda install -c scrapinghub scrapy
    

    相关文章

      网友评论

          本文标题:使用Anaconda无痛解决Python安装相关问题

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