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

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 mysql sum函数优化
  • ¥15 求高通平台Softsim调试经验
  • ¥15 canal如何实现将mysql多张表(月表)采集入库到目标表中(一张表)?
  • ¥15 wpf ScrollViewer实现冻结左侧宽度w范围内的视图
  • ¥15 栅极驱动低侧烧毁MOSFET
  • ¥30 写segy数据时出错3
  • ¥100 linux下qt运行QCefView demo报错
  • ¥50 F1C100S下的红外解码IR_RX驱动问题
  • ¥20 基于matlab的航迹融合 航迹关联 航迹插补
  • ¥15 用Matlab实现图中的光线追迹