使Fabric Python库工作 [英] Getting Fabric Python Library to Work
问题描述
我通过Pip安装了Fabric,而Pip是通过Homebrew(OS X 10.6.6)安装的. pip表示应该在Fabric库中找到它,但是我无法获得基本的fabfile.
I installed Fabric via Pip, which was installed via Homebrew (OS X 10.6.6). The Fabric library is where pip says it should be, however I cannot get a basic fabfile going.
我尝试了以下简单的hello world示例: http://docs.fabfile.org/en/1.0.1/tutorial.html
I've tried the simple hello world example found here: http://docs.fabfile.org/en/1.0.1/tutorial.html
当我尝试 fab hello 时,Bash给我以下错误: -bash:fab:找不到命令
Bash gives me the following error when I try fab hello: -bash: fab: command not found
路径:
- Python 2.7.1:/usr/local/bin/python
- pip库:/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages
我可能忽略了一些愚蠢的事情.感谢您的帮助.
I'm probably overlooking something silly. Thanks for the help.
推荐答案
在使用Homebrew和Pip安装Fabric时,fab
放置在/usr/local/Cellar/python/2.7.1/bin/fab
处.确保/usr/local/Cellar/python/2.7.1/bin
在您的PATH
上.
When you install Fabric with Homebrew and Pip, fab
gets put at /usr/local/Cellar/python/2.7.1/bin/fab
. Make sure /usr/local/Cellar/python/2.7.1/bin
is on your PATH
.
这篇关于使Fabric Python库工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!