0

我刚刚在我的 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

任何人请帮助我。

4

1 回答 1

0

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

于 2013-04-26T04:47:41.477 回答