我在Windows上使用fabric 0.9.1版本来做一些与部署相关的事情。
但是即将开始“fab hello” iam面临以下错误的那一刻
D:\pythonscripts>fab hello
Traceback (most recent call last):
File "C:\Python26\Scripts\fab-script.py", line 8, in <module>
load_entry_point('fabric==0.9.1', 'console_scripts', 'fab')()
File "build\bdist.win-amd64\egg\pkg_resources.py", line 318, in load_entry_poi
nt
File "build\bdist.win-amd64\egg\pkg_resources.py", line 2221, in load_entry_po
int
File "build\bdist.win-amd64\egg\pkg_resources.py", line 1954, in load
File "build\bdist.win-amd64\egg\fabric\main.py", line 17, in <module>
File "build\bdist.win-amd64\egg\fabric\api.py", line 9, in <module>
File "build\bdist.win-amd64\egg\fabric\context_managers.py", line 12, in <modu
le>
File "build\bdist.win-amd64\egg\fabric\state.py", line 9, in <module>
File "build\bdist.win-amd64\egg\fabric\network.py", line 19, in <module>
File "build\bdist.win-amd64\egg\fabric\utils.py", line 21, in abort
ImportError: cannot import name output
有关如何解决此错误的任何线索?
答案 0 :(得分:1)
似乎是这个问题:http://code.fabfile.org/issues/show/194,可能它与Fabric无关,但PyCrypto或Python64。如果它是PyCrypto,那么最简单的方法是从http://www.voidspace.org.uk/python/modules.shtml#pycrypto下载二进制版本并安装它并从http://sourceforge.net/projects/pywin32/files/下载pywin32并安装它。