让Fabric Python库正常工作
我通过Pip安装了Fabric,而Pip是通过Homebrew安装的(OS X 10.6.6)。Fabric库在pip说的地方,但我就是无法启动一个基本的fabfile。
我试过这里的简单“你好,世界”示例: http://docs.fabfile.org/en/1.0.1/tutorial.html
当我尝试输入 fab hello 时,Bash给我返回了以下错误: -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
我可能忽略了一些简单的东西。谢谢大家的帮助。
1 个回答
6
当你通过Homebrew和Pip安装Fabric时,fab
这个命令会被放在/usr/local/Cellar/python/2.7.1/bin/fab
这个位置。确保/usr/local/Cellar/python/2.7.1/bin
这个路径在你的PATH
环境变量里。