zoukankan      html  css  js  c++  java
  • mint 安装 anaconda3

     

      从清华的镜像站下载https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

      从最下面选Anaconda3-5.0.1-Linux-x86_64

     在下载 路径下 执行 

       bash ./Anaconda3-5.0.1-Linux-x86_64.sh  

    安装好之后,按提示

    export PATH=$HOME/anaconda3/bin:$PATH

    并添加到

    xed ~/.profile  (不是bashrc,因为换成了zsh)

    然后source ~/.profile

    切换清华的源

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
    #显示通道地址
    conda config --set show_channel_urls yes
    conda config --set channel_priority flexible #防止出现Solving environment: failed
    #若需要PyTorch需添加
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

    确保
    C:UsersXXX

    .condarc 文件

    channels:
    - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
    - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
    - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
    - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    - https://repo.continuum.io/pkgs/main/
    show_channel_urls: true
    channel_priority: flexible




    安装好之后,已经可以使用

    anaconda-navigator

    win下报错 

    参考 https://blog.csdn.net/weixin_40431584/article/details/103914584

    ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos and other configuration errors in any '.netrc' file in your home directory,any environment variables ending in '_PROXY', and any other system-wide proxy configuration settings.

    原因是由于代理配置错误,Conda无法继续。

    解决措施如下:

    在Internet中打开“Internet选项”——>连接——>局域网设置——>把“为Lan使用代理服务器”的勾去掉。

    发现在mint下报错

    File "/home/xcsc/anaconda3/lib/python3.8/site-packages/anaconda_navigator/api/external_apps/vscode.py", line 168, in _find_linux_install_dir
    if DISTRO_NAME in ['ubuntu', 'debian']:
    UnboundLocalError: local variable 'DISTRO_NAME' referenced before assignment

    /home/xcsc/anaconda3/lib/python3.8/site-packages/anaconda_navigator/api/external_apps/vscode.py

            DISTRO_NAME = 'ubuntu'
            if DISTRO_NAME in ['ubuntu', 'debian']:
                _pkg_type = 'deb'
            else:
                _pkg_type = 'rpm'

    强行加1行,搞定

  • 相关阅读:
    成都Uber优步司机奖励政策(3月17日)
    北京Uber优步司机奖励政策(3月17日)
    滴滴快车奖励政策,高峰奖励,翻倍奖励,按成交率,指派单数分级(3月17日)
    oracle系统包—-dbms_output用法
    oracle系统包——dbms_job用法(oracle定时任务)
    oracle系统包——DBMS_PIPE用法
    oracle系统包——dbms_alert用法
    oracle系统包——dbms_transaction用法
    oracle系统包——dbms_random用法
    oracle存储过程中is和as区别
  • 原文地址:https://www.cnblogs.com/xuanmanstein/p/13892149.html
Copyright © 2011-2022 走看看