最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】安装Scrapy过程中出错:ERROR: ‘xslt-config’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

Scrapy crifan 4390浏览 0评论

【问题】

安装scrapy过程中,出现xml方面的错误:

Downloading/unpacking lxml (from Scrapy)
  Downloading lxml-3.0.1.tar.gz (3.2MB): 3.2MB downloaded
  Running setup.py egg_info for package lxml
    Building lxml version 3.0.1.
    Building without Cython.
    ERROR: 'xslt-config' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration of libxslt

    warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
    warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
    warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
    warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
    warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
    warning: no files found matching '*.txt' under directory 'src\lxml\tests'
    warning: no files found matching 'pubkey.asc' under directory 'doc'
    warning: no files found matching 'tagpython*.png' under directory 'doc'
    warning: no files found matching 'Makefile' under directory 'doc'

 

【解决过程】

1。 参考:

Scrapy在Windows上的安装笔记

http://pypi.python.org/simple/lxml/,下载win7 x64的:

lxml-2.2.8.win-amd64-py2.7.exe

然后重新打开cmd去pip install Scrapy,解决了此xml的问题了。

转载请注明:在路上 » 【已解决】安装Scrapy过程中出错:ERROR: ‘xslt-config’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (3)

    93 queries in 0.176 seconds, using 22.12MB memory