我試圖使用指南從Getting Python and Fabric Installed on Windows在Windows 7上安裝Python面料。的Python的easy_install拋出搭配chmod錯誤
要安裝PyCrypto和麪料,我的easy_install使用,因爲指南中推薦的,但兩者失敗了,返回的文件模式錯誤:
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
我不知道很多關於這個搭配chmod-的事情,但我認爲Windows中沒有chmod?
?我怎樣才能easy_install的實際工作?
我發了一個類似的問題here,其中(感謝@ J.F。Sebastian)我找到了一種解決方法來安裝那些沒有結構的軟件包。但是現在我想知道,如何真正解決我使用easy_install時遇到的問題。
謝謝! UAC完成了這項工作! – DIF 2012-02-06 14:14:11
另外,對於其他有此問題的人,您可以按'Shift + Enter'以管理員身份運行程序,而不是登錄到其他帳戶。不過,你仍然需要密碼。 – Droogans 2012-02-06 19:46:36