本文介绍了`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`不
发布评论