Python上的“easy_install” - HtmlCSSInclude

时间:2013-04-12 03:42:16

标签: python

我刚在Windows 2003服务器上安装了Python 2.7和easy_install-2.7.exe,然后将%PATH%设置为C:\ Python27; C:\ Python27 \ Scripts;。然后我尝试使用easy_install安装python包,但easy_install失败了。失败如下:

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

任何人请帮助我。

1 个答案:

答案 0 :(得分:0)

我尝试编辑此软件包并安装它。 下载了包并编辑了HtmlCssinclude.py。此外,我发现对“sample.css”的引用,并且此软件包安装不需要“testdata”。所以我也删除了那些参考。这有助于我从本地文件夹安装包。