您当前的位置: 首页 >  linux

川川菜鸟

暂无认证

  • 4浏览

    0关注

    969博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

linux装conda

川川菜鸟 发布时间:2021-05-04 22:27:48 ,浏览量:4

linux安装conda 亲测没问题 在这里插入图片描述 然后装环境也没问题: 在这里插入图片描述 防止博主删帖我还是记录下: 1.安装

wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh

2.依次执行,遇到选择选yes

chmod 777 Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh

添加环境变量:PATH位置是自己在哪里安装的位置(就是在哪使用的wegt)

export  PATH=/home/ubuntu/shanghai/conda

是它生效:

source ~/.bashrc

输入conda查看:

conda

成功后添加源,依次输入:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
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/bioconda/
conda config --set show_channel_urls yes 
conda config --get channels

查看有哪些环境:

conda env list

创建一个环境,比如我要创建nonobot1,pythpn版本3.8:

conda create -n nonebot1 python=3.8

在这里插入图片描述 生成如下: 在这里插入图片描述 所以退出环境:

conda deactivate

进入我的nonebot1环境:

conda activate nonebot1

以此我们可以通过这样的方式构造多个不同的环境

创建好后,可以查看一下:

conda env list

在这里插入图片描述 如果不想每次退出然后进入,直接切换环境也可以这样source activate:

source activate nonebot1

退出来呢还是:

conda deactivate

在这里插入图片描述 安装包就pip

关注
打赏
1665165634
查看更多评论
立即登录/注册

微信扫码登录

0.2430s