Getting Fabric Python Library to Work

2019-06-01 10:35发布

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.

1条回答
beautiful°
2楼-- · 2019-06-01 11:09

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.

查看更多
登录 后发表回答