windows安装fabric遇到的若干问题

fabric是instagram团队使用的自动化部署工具,花了一个早上试用了一下,一个hello world就遇到了各种问题。这里是在windows环境中进行的安装。

[b]1.源码安装pycrypto不成功[/b]
提示:
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
解决:
1)setup.py install --skip-build
参考http://stackoverflow.com/questions/2261866/how-to-install-python-ssl-module-on-windows
2)使用msi或者exe文件来安装

[b]2.找不到fab命令[/b]
fab.exe在python安装目录的Scripts目录,比如我的目录D:\Program Files\Python25\Scripts
找到后加入到环境变量Path中,即可使用fab来执行了。

[b]3.执行fab提示找不到fabfiles[/b]
D:\>fab hello
Fatal error: Couldn't find any fabfiles!
Remember that -f can be used to specify fabfile path, and use -h for help.
Aborting.
原因:跟python的PYTHONPATH有关系,如果fabfile.py没有放在PYTHONPATH中,会提示找不到。
解决:使用-f指定文件
D:\>fab -f ./fabfile.py hello
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值