2013-04-12 79 views
0

我剛剛在Windows 2003服務器上安裝了Python 2.7和easy_install-2.7.exe,然後將%PATH%設置爲C:\ Python27; C:\ Python27 \ Scripts ;.然後我嘗試用easy_install安裝python包,但easy_install失敗。失敗如下:在Windows上Python的「easy_install」 - HtmlCSSInclude

C:\>easy_install HtmlCssInclude 
Searching for HtmlCssInclude 
Reading http://pypi.python.org/simple/HtmlCssInclude/ 
Best match: HtmlCssInclude 0.1.2 
Downloading http://pypi.python.org/packages/source/H/HtmlCssInclude/HtmlCssInclu 
de-0.1.2.tar.gz#md5=0b4438bf62ae66842a514dcff67c0cd7 
Processing HtmlCssInclude-0.1.2.tar.gz 
Running HtmlCssInclude-0.1.2\setup.py -q bdist_egg --dist-dir c:\docume~1\admini 
~1\locals~1\temp\1\easy_install-qpossf\HtmlCssInclude-0.1.2\egg-dist-tmp-haku7q 
C:\Python27\Lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 
'auther' 
    warnings.warn(msg) 
warning: no files found matching 'testdata' 
error: Setup script exited with error: can't copy 'sample.css': doesn't exist or 
not a regular file 

有人請幫助我。

+0

只是要確定 - 你安裝了lxml嗎? –

+0

是的。安裝了版本lxml-2.2.8.win32-py2.7.exe – Prajilal

+0

請幫我解決這個問題 – Prajilal

回答

0

我試着編輯這個軟件包並安裝。 下載了該軟件包並編輯了HtmlCssinclude.py。另外我發現對'sample.css'的引用和'testdata'對於這個軟件包的安裝不是必須的。所以我也刪除了這些參考。這有助於我從本地文件夾安裝軟件包。

相關問題