1.源码安装pycrypto不成功
提示:
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文件来安装
3.执行fab提示找不到fabfiles
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