conda 环境

安装完 minconda后

有一个默认的 base环境

bash 进入

conda info 

conda config --remove-key channels # 恢复原镜像

conda config --show channels
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
  - defaults

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 --set show_channel_urls yes

vi ~/.condarc 删除default

conda update --all

# 常用命令
conda create -n test python=3.8

conda env list 
conda activate sgview
conda deactivate

设置pip 镜像源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

apt-get update
apt install git

linux 安装 allure

        apt install openjdk-8-jre-headless
        # apt install allure 

        下载 allure 安装包
        https://github.com/allure-framework/allure2/releases
        unzip allure-2.21.0.zip

        sudo ln -s /opt/allure-2.21.0/bin/allure /usr/bin/allure  
        allure --version

Ubuntu+Python3+Allure环境搭建:https://www.jianshu.com/p/33e04d57e346

posted @ 2023-04-12 17:30  hanfe1  阅读(32)  评论(0编辑  收藏  举报