`which`找到文件,但'bash`不

编程入门 行业动态 更新时间:2024-10-22 17:29:32
本文介绍了`which`找到文件,但'bash`不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我安装面料通过 PIP 。

得到 PIP 按

sudo apt-get install python-pip

得到由面料:

sudo pip install fabric

(它失败了,当我试图瓦特/ sudo的,并警告我有关文档或测试缺少的文件)。

(It failed when I tried w/out sudo, and warns me about a lack of files in docs or tests).

现在,我得到以下几点:

Now I get the following:

$ which fab /usr/local/bin/fab $ $ fab bash: /usr/bin/fab: No such file or directory

咦!?我以为这搜查了 PATH 用于将由庆典所使用的分辨率。我误解的东西吗?是面料,画中画,或击在这里惹的祸?如何解决呢?

Huh!? I thought which searched the PATH for the resolution that would be used by bash. Am I misunderstanding something? Is Fabric, Pip, or Bash to blame here? How do I fix it?

我知道现在我可以运行的/ usr / local / bin目录/工厂或

I know for now I can run /usr/local/bin/fab or:

`which fab` deploy

但我想它正常运行!

But I want it to run correctly!

推荐答案

下面将清除那里的bash的认为的工厂位于:

The following will clear where bash thinks fab is located:

hash -d fab

更多推荐

`which`找到文件,但'bash`不

本文发布于:2023-11-23 19:47:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622670.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   bash

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!