|
请问下各位老师,我在linux下安装好miniconda3后,想把bashrc中的conda initialize部分(如下)删除,然后重新写到另外一个文件conda_init.sh中,再source conda_init.sh或者bash conda_init.sh可以正常使用conda命令(比如conda list等),但是并不能加载conda中python(which python得到还是系统默认的python(/usr/bin/python)不是conda中的python),请问该如何解决?
- # >>> conda initialize >>>
- # !! Contents within this block are managed by 'conda init' !!
- __conda_setup="$('/public/home/wangyueda/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
- if [ $? -eq 0 ]; then
- eval "$__conda_setup"
- else
- if [ -f "/public/home/wangyueda/miniconda3/etc/profile.d/conda.sh" ]; then
- . "/public/home/wangyueda/miniconda3/etc/profile.d/conda.sh"
- else
- export PATH="/public/home/wangyueda/miniconda3/bin:$PATH"
- fi
- fi
- unset __conda_setup
- # <<< conda initialize <<<
复制代码
|
|