让 Fabric Python 库发挥作用
我通过 Pip 安装了 Fabric,它是通过 Homebrew (OS X 10.6.6) 安装的。 Fabric 库是 pip 所说的位置,但是我无法获得基本的 fabfile。
我尝试过这里找到的简单的 hello world 示例: http://docs.fabfile .org/en/1.0.1/tutorial.html
当我尝试 fab hello 时,Bash 给出了以下错误: -bash: fab: 未找到命令
路径:
- Python 2.7.1:/usr/local/bin/python
- pip 库:/usr/local/Cellar/python/2.7 .1/lib/python2.7/site-packages
我可能忽略了一些愚蠢的事情。感谢您的帮助。
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.
I've tried the simple hello world example found here: http://docs.fabfile.org/en/1.0.1/tutorial.html
Bash gives me the following error when I try fab hello:
-bash: fab: command not found
Paths:
- Python 2.7.1: /usr/local/bin/python
- pip libraries: /usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages
I'm probably overlooking something silly. Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您使用 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 yourPATH
.