Getting Fabric Python Library to Work

馋奶兔 提交于 2019-12-23 03:07:11

问题


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:


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.



来源:https://stackoverflow.com/questions/5749596/getting-fabric-python-library-to-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!