zoukankan      html  css  js  c++  java
  • anaconda的安装与使用

    1.在合适的目录下载安装包

    wget -c https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh

    2.安装

    bash Anaconda3-2020.02-Linux-x86_64.sh

    3.修改配置

    vi ~/.bashrc

    export PATH="/root/anaconda3/bin:$PATH"这个插入到文件最后一行

    4.配置修改生效

    source ~/.bashrc

    5.查看版本

    conda --version

    6.此时一进入服务器就会进入conda 的base页,若不想进入,输入如下命令

    conda config --set auto_activate_base False

     使用

    1.创建虚拟

    conda create -n your_env_name python=3.6

    2.激活

    conda activate your_env_name

    3.退出

    conda deactivate

    4.查看

    conda env list

    使用python虚拟环境时,若打印中文或者其他语种时,报UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)这个错

    输入:echo 'export LANG=en_US.UTF-8' >> ~/.bashrc

    重新登录即可

    参考:https://www.cnblogs.com/NoTrace/p/12509599.html

  • 相关阅读:
    401. Binary Watch
    46. Permutations
    61. Rotate List
    142. Linked List Cycle II
    86. Partition List
    234. Palindrome Linked List
    19. Remove Nth Node From End of List
    141. Linked List Cycle
    524. Longest Word in Dictionary through Deleting
    android ListView详解
  • 原文地址:https://www.cnblogs.com/lingwang3/p/14371218.html
Copyright © 2011-2022 走看看