当前位置: 首页> 游戏> 单机 > 桂林象鼻山需要门票吗_建一个手机app平台费用_关键词排名是什么意思_网站推广的方法

桂林象鼻山需要门票吗_建一个手机app平台费用_关键词排名是什么意思_网站推广的方法

时间:2025/7/11 18:48:50来源:https://blog.csdn.net/programmer589/article/details/143134348 浏览次数:0次
桂林象鼻山需要门票吗_建一个手机app平台费用_关键词排名是什么意思_网站推广的方法

Linux conda activate报错:CondaError: Run ‘conda init’ before ‘conda activate’

在Centos7.9的Linux系统环境下,64位,安装玩Conda,输入

conda activate testconda

报错,提示说运行conda activate前需要先运行conda init

[root@bigdata-server python]# conda activate testconda
Ignoring configuration file (/root/.condarc) due to error:
Unable to load configuration file.
path: /root/.condarc
reason: invalid yaml at line 44, column 0
Ignoring configuration file (/root/.condarc) due to error:
Unable to load configuration file.
path: /root/.condarc
reason: invalid yaml at line 44, column 0
Ignoring configuration file (/root/.condarc) due to error:
Unable to load configuration file.
path: /root/.condarc
reason: invalid yaml at line 44, column 0
Ignoring configuration file (/root/.condarc) due to error:
Unable to load configuration file.
path: /root/.condarc
reason: invalid yaml at line 44, column 0
CondaError: Run 'conda init' before 'conda activate'

但是输入conda init,却没有什么效果。

conda init

conda init完之后,conda activate testconda仍然报错:CondaError: Run ‘conda init’ before ‘conda activate’
【解决办法】
查找conda的环境路径

[root@bigdata-server python]# which conda
/root/anaconda3/bin/conda

添加codna的环境路径

vim ~/.bashrc

在最后一行添加

export CONDA_ENVS_PATH=~/anaconda3/envs

保存退出。

source ~/.bashrc

再输入conda activate testconda

conda activate testconda

正常。

关键字:桂林象鼻山需要门票吗_建一个手机app平台费用_关键词排名是什么意思_网站推广的方法

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: