li18790553617 2022-09-23 01:04
浏览 253
已结题

conda激活环境bash: dirname: command not found

问题遇到的现象和发生背景

由于用的服务器,服务器上有一个anaconda,我自己装了一个miniconda,今天切换到服务器的conda ,切换回来时发现输入

conda info --envs

出现

bash: dirname: command not found...
bash: dirname: command not found...
bash: sed: command not found...
Similar command is: 'zed'
bash: sed: command not found...
Similar command is: 'zed'
bash: sed: command not found...
Similar command is: 'zed'
bash: sed: command not found...
Similar command is: 'zed'
#以及
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-c++': not a valid identifier
bash: sed: command not found...
Similar command is: 'zed'
bash: sed: command not found...
Similar command is: 'zed'
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-g++': not a valid identifier
bash: sed: command not found...
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-addr2line': not a valid identifier
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-ar': not a valid identifier
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-as': not a valid identifier
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-c++filt': not a valid identifier
bash: tr: command not found...
-bash: export: `=/cluster/facility/hlhuang/miniconda3/bin/x86_64-conda-linux-gnu-elfedit': not a valid identifier
bash: tr: command not found...

#虽然报错,但是还是能正常进入环境,再次进入环境就就不会报错。但是重启后第一次进入还是会这样

求帮助,怎么解决
  • 写回答

1条回答 默认 最新

  • li18790553617 2022-09-23 16:39
    关注

    已解决conda deactivate
    conda install grep
    conda install zed
    重启终端

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 10月1日
  • 已采纳回答 9月23日
  • 创建了问题 9月23日

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog