Could not find conda environment

激活conda环境时:

conda activate myconda

发现报错如下:

Could not find conda environment: myconda
You can list all discoverable environments with `conda info --envs`.

那么查看现有的conda环境:

(base) xxx@mail:~$ conda info --envs
# conda environments:
#
                         /home/xxx/anaconda3
                         /home/xxx/anaconda3/envs/myconda
                         /home/xxx/anaconda3/envs/xxx
                         /home/xxx/anaconda3/envs/xxx
base                  *  /home/xxx/yes

发现myconda存在,但是不能激活,则加上环境的路径再激活即可:

conda activate /home/xxx/anaconda3/envs/myconda
(myconda) xxx@mail:~$ 

你可能感兴趣的:(conda,python,linux)