<p>我正试图使用<a href="http://www.jonnyreeves.co.uk/2011/08/getting-python-and-fabric-installed-on-windows/" rel="nofollow noreferrer">Getting Python and Fabric Installed on Windows</a>中的指南在Windows 7上安装Python Fabric。</p>
<p>要安装PyCrypto和Fabric,我按照指南中的建议使用了easy_install,但都失败了,返回了chmod错误:</p>
<pre><code>Using c:\python27\lib\site-packages\fabric-1.3.4-py2.7.egg
Processing dependencies for fabric
Searching for pycrypto>=2.1,!=2.4
Reading http://pypi.python.org/simple/pycrypto/
Reading http://pycrypto.sourceforge.net
Reading http://www.amk.ca/python/code/crypto
Reading http://www.pycrypto.org/
Best match: pycrypto 2.5
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.5.tar.gz
Processing pycrypto-2.5.tar.gz
Running pycrypto-2.5\setup.py -q bdist_egg --dist-dir c:\users\birgit\appdata\local\temp\easy_install-nzrlow\pycrypto-2.5\egg-dist-tmp-_pwkm4
The command "chmod" is spelled wrong or could not be found.
Traceback (most recent call last):
File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module> load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')()
File "C:\Python27\lib\site-packages\setuptools-0.6c12dev_r88846-py2.7.egg\setuptools\command\easy_install.py", line 1712, in main
[... lots and lots of lines... (if they are relevant, I'll post them)]
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run()
File "setup.py", line 269, in run
RuntimeError: chmod error
</code></pre>
<p>我不太了解这个chmod,但我以为窗户里没有chmod?</p>
<p>我怎样才能让安装简单到实际工作?</p>
<p>我提出了一个类似的问题<a href="https://stackoverflow.com/questions/9131323/problems-installing-python-fabric-on-windows-7">here</a>,在那里(多亏了@J.F.Sebastian),我找到了一个解决方法来安装那些没有结构的包。但现在我真的想知道,如何真正解决这个问题,我与简易安装。</p>