• 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行,搞定

  • 相关阅读:
    遥控器拆卸记录
    计算器拆卸记录
    no matching constructor for initialization
    STL
    排序方法
    二叉树之广度优先遍历
    C++之queue学习记录
    方向电路
    站间联系电路
    求二叉树的最大深度
  • 原文地址:https://www.cnblogs.com/xuanmanstein/p/13892149.html
Copyright © 2020-2023  润新知