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

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日

悬赏问题

  • ¥20 keepalive配置业务服务双机单活的方法。业务服务一定是要双机单活的方式
  • ¥50 关于多次提交POST数据后,无法获取到POST数据参数的问题
  • ¥15 win10,这种情况怎么办
  • ¥15 如何在配置使用Prettier的VSCode中通过Better Align插件来对齐等式?(相关搜索:格式化)
  • ¥100 在连接内网VPN时,如何同时保持互联网连接
  • ¥15 MATLAB中使用parfor,矩阵Removal的有效索引在parfor循环中受限制
  • ¥20 Win 10 LTSC 1809版本如何无损提升到20H1版本
  • ¥50 win10 LTSC 虚拟键盘不弹出
  • ¥30 微信小程序请求失败,网页能正常带锁访问
  • ¥15 Matlab求解微分方程,如何用fish2d进行预优?