安装Scrapy提示ERROR: 'xslt-config' 不是内部或外部命令,也不是可运行的程序

环境:win7、Python 2.7.12、PyCharm 2016.3

Requirement already satisfied (use --upgrade to upgrade): scrapy in d:\python27\lib\site-packages\scrapy-1.2.2-py2.7.egg
Collecting Twisted>=10.0.0 (from scrapy)
  Downloading https://pypi.doubanio.com/packages/dc/c0/a0114a6d7fa211c0904b0de931e8cafb5210ad824996cc6a9d67f3bae22c/Twisted-16.6.0.tar.bz2 (3.0MB)
Requirement already satisfied (use --upgrade to upgrade): w3lib>=1.15.0 in d:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): queuelib in d:\python27\lib\site-packages (from scrapy)
Collecting lxml (from scrapy)
  Downloading https://pypi.doubanio.com/packages/14/51/61462e59ab58575fe0d679ab2d31ec73cd49b26182c6ece3d9379faccfd7/lxml-3.7.0.tar.gz (3.8MB)
Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL in d:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): cssselect>=0.9 in d:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in d:\python27\lib\site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): parsel>=0.9.3 in d:\python27\lib\site-packages\parsel-1.1.0-py2.7.egg (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): PyDispatcher>=2.0.5 in d:\python27\lib\site-packages\pydispatcher-2.0.5-py2.7.egg (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): service-identity in d:\python27\lib\site-packages (from scrapy)
Collecting zope.interface>=3.6.0 (from Twisted>=10.0.0->scrapy)
  Downloading https://pypi.doubanio.com/packages/44/af/cea1e18bc0d3be0e0824762d3236f0e61088eeed75287e7b854d65ec9916/zope.interface-4.3.3.tar.gz (150kB)
Collecting constantly>=15.1 (from Twisted>=10.0.0->scrapy)
  Downloading https://pypi.doubanio.com/packages/b9/65/48c1909d0c0aeae6c10213340ce682db01b48ea900a7d9fce7a7910ff318/constantly-15.1.0-py2.py3-none-any.whl
Collecting incremental>=16.10.1 (from Twisted>=10.0.0->scrapy)
  Downloading https://pypi.doubanio.com/packages/b5/72/f4246320648bbe0f8c16dcebe1560e359a3a0631839f8d963ea8ff18caaf/incremental-16.10.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): cryptography>=1.3.4 in d:\python27\lib\site-packages (from pyOpenSSL->scrapy)
Requirement already satisfied (use --upgrade to upgrade): pyasn1-modules in d:\python27\lib\site-packages (from service-identity->scrapy)
Requirement already satisfied (use --upgrade to upgrade): attrs in d:\python27\lib\site-packages (from service-identity->scrapy)
Requirement already satisfied (use --upgrade to upgrade): pyasn1 in d:\python27\lib\site-packages (from service-identity->scrapy)
Requirement already satisfied (use --upgrade to upgrade): setuptools in d:\python27\lib\site-packages (from zope.interface>=3.6.0->Twisted>=10.0.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): enum34 in d:\python27\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Requirement already satisfied (use --upgrade to upgrade): ipaddress in d:\python27\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in d:\python27\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in d:\python27\lib\site-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy)
Requirement already satisfied (use --upgrade to upgrade): pycparser in d:\python27\lib\site-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->scrapy)
Installing collected packages: zope.interface, constantly, incremental, Twisted, lxml
  Running setup.py install for zope.interface: started
    Running setup.py install for zope.interface: finished with status ‘done‘
  Running setup.py install for Twisted: started
    Running setup.py install for Twisted: finished with status ‘done‘
  Running setup.py install for lxml: started
    Running setup.py install for lxml: finished with status ‘error‘
    Complete output from command D:\Python27\python.exe -u -c "import setuptools, tokenize;__file__=‘C:\\Users\\Administrator\\AppData\\Local\\Temp\\pycharm-packaging\\lxml\\setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record c:\users\admini~1\appdata\local\temp\pip-ju1hmw-record\install-record.txt --single-version-externally-managed --compile:
    Building lxml version 3.7.0.
    Building without Cython.
    ERROR: ‘xslt-config‘ 不是内部或外部命令,也不是可运行的程序
    或批处理文件。

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

    Using build configuration of libxslt
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-2.7
    creating build\lib.win32-2.7\lxml
    copying src\lxml\builder.py -> build\lib.win32-2.7\lxml
    copying src\lxml\cssselect.py -> build\lib.win32-2.7\lxml
    copying src\lxml\doctestcompare.py -> build\lib.win32-2.7\lxml
    copying src\lxml\ElementInclude.py -> build\lib.win32-2.7\lxml
    copying src\lxml\pyclasslookup.py -> build\lib.win32-2.7\lxml
    copying src\lxml\sax.py -> build\lib.win32-2.7\lxml
    copying src\lxml\usedoctest.py -> build\lib.win32-2.7\lxml
    copying src\lxml\_elementpath.py -> build\lib.win32-2.7\lxml
    copying src\lxml\__init__.py -> build\lib.win32-2.7\lxml
    creating build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\__init__.py -> build\lib.win32-2.7\lxml\includes
    creating build\lib.win32-2.7\lxml\html
    copying src\lxml\html\builder.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\clean.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\defs.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\diff.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\ElementSoup.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\formfill.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\html5parser.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\soupparser.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\usedoctest.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\_diffcommand.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\_html5builder.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\_setmixin.py -> build\lib.win32-2.7\lxml\html
    copying src\lxml\html\__init__.py -> build\lib.win32-2.7\lxml\html
    creating build\lib.win32-2.7\lxml\isoschematron
    copying src\lxml\isoschematron\__init__.py -> build\lib.win32-2.7\lxml\isoschematron
    copying src\lxml\lxml.etree.h -> build\lib.win32-2.7\lxml
    copying src\lxml\lxml.etree_api.h -> build\lib.win32-2.7\lxml
    copying src\lxml\includes\c14n.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\config.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\relaxng.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\schematron.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\tree.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\uri.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\xinclude.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\xpath.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\xslt.pxd -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\etree_defs.h -> build\lib.win32-2.7\lxml\includes
    copying src\lxml\includes\lxml-version.h -> build\lib.win32-2.7\lxml\includes
    creating build\lib.win32-2.7\lxml\isoschematron\resources
    creating build\lib.win32-2.7\lxml\isoschematron\resources\rng
    copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-2.7\lxml\isoschematron\resources\rng
    creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl
    copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl
    copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl
    creating build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-2.7\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building ‘lxml.etree‘ extension
    creating build\temp.win32-2.7
    creating build\temp.win32-2.7\Release
    creating build\temp.win32-2.7\Release\src
    creating build\temp.win32-2.7\Release\src\lxml
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc\lxml\includes -ID:\Python27\include -ID:\Python27\PC /Tcsrc\lxml\lxml.etree.c /Fobuild\temp.win32-2.7\Release\src\lxml\lxml.etree.obj -w
    cl: 命令行 warning D9025 :正在重写“/W3”(用“/w”)
    lxml.etree.c
    src\lxml\includes\etree_defs.h(14) : fatal error C1083: 无法打开包括文件:“libxml/xmlversion.h”: No such file or directory
    Compile failed: command ‘C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\cl.exe‘ failed with exit status 2
    creating users
    creating users\admini~1
    creating users\admini~1\appdata
    creating users\admini~1\appdata\local
    creating users\admini~1\appdata\local\temp
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/usr/include/libxml2 /Tcc:\users\admini~1\appdata\local\temp\xmlXPathInittloph7.c /Fousers\admini~1\appdata\local\temp\xmlXPathInittloph7.obj
    xmlXPathInittloph7.c
    c:\users\admini~1\appdata\local\temp\xmlXPathInittloph7.c(1) : fatal error C1083: 无法打开包括文件:“libxml/xpath.h”: No such file or directory
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command ‘C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\cl.exe‘ failed with exit status 2

    ----------------------------------------

Command "D:\Python27\python.exe -u -c "import setuptools, tokenize;__file__=‘C:\\Users\\Administrator\\AppData\\Local\\Temp\\pycharm-packaging\\lxml\\setup.py‘;exec(compile(getattr(tokenize, ‘open‘, open)(__file__).read().replace(‘\r\n‘, ‘\n‘), __file__, ‘exec‘))" install --record c:\users\admini~1\appdata\local\temp\pip-ju1hmw-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pycharm-packaging\lxmlYou are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command.

命令行pip和easy_install装lxml,都失败。

1、下载Microsoft Visual C++ Compiler for Python 2.7

2、手动安装lxml的exe的二进制包

3、使用wheel安装

D:\Python27\Scripts>pip install lxml-3.7.0-cp27-cp27m-win_amd64.whl
lxml-3.7.0-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ comm
and.

D:\Python27\Scripts>

参考:

  https://www.v2ex.com/t/186114

  https://www.zhihu.com/question/26857761

  https://www.zhihu.com/question/30047496

  http://blog.csdn.net/xibeichengf/article/details/50479151

  http://www.cnblogs.com/neillee/p/5903856.html

  https://www.biaodianfu.com/install-scrapy-on-windows.html

  http://blog.csdn.net/changdejie/article/details/17997299

安装Scrapy提示ERROR: 'xslt-config' 不是内部或外部命令,也不是可运行的程序

时间: 2024-10-24 08:36:43

安装Scrapy提示ERROR: 'xslt-config' 不是内部或外部命令,也不是可运行的程序的相关文章

Windows中安装jdk,出现javac不是内部或外部命令 也不是可运行的程序

在经过多次实验,终于解决了在dos窗口验证jdk是否安装成功的错误提示-----javac不是内部或外部命令 也不是可运行的程序 首先要明确的是 在新建 JAVA_HOME , CLASSPATH文件是在系统变量里创建,而不是在用户变量里创建. 在JAVA_HOME:E:\AUTMuLu\java\jdk   ----jdk的安装路径 CLASSPATH:  .;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\bin; -

SQL Server使用xp_cmdshell提示“不是内部或外部命令,也不是可运行的程序 或批处理文件”

数据迁移后,使用SQL Server 2012 备份数据库,备份完成后自动压缩成rar文件,以前执行没有问题的语句现在只能做备份,而不能自动压缩并删除备份,说明问题出在执行备份后压缩时出现问题.将语句复制到查询分析器执行报错,提示"RAR.EXE不是内部或外部命令,也不是可运行的程序 或批处理文件". SQL语句如下: /*自动压缩文件,并在压缩完成后删除原文件*/ declare @sqlPathB  varchar(150)   ---数据路径 set @sqlPathB='RAR

20200221_python虚拟环境在Windows下安装配置_virtualenv不是内部或外部命令也不是可运行的程序或批处理文件

1. 使用管理员启动命令行; 2. 安装虚拟环境 a)      .\pip install virtualenv  -i https://pypi.douban.com/simple/ b)       .\pip install virtualenvwrapper-win -i https://pypi.douban.com/simple/ 3.  解决错误 a)      添加ignore 4.  输入.\workon 出现这个, 表示安装成功: 5. 配置虚拟环境路径, 如果不配置WOR

关于jmeter启动,提示“ 'findstr' 不是内部或外部命令,也不是运行程序” 解决方案

1.jmeter环境配置后,点击jmeter.bat,提示以下错误 2.先cmd检查,输入命令 findstr /? 说明C:\Windows\System32\findstr.exe未生效,因安装极少数软件,导致path值被篡改 3.检查环境变量里的path,将原来的""改为"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel

Android 开发环境jdk配置 执行javac提示不是内部或外部命令解决方法

'JAVAC' 不是内部或外部命令,也不是可运行的程序 或批处理文件.问题解决方法分享! 'JAVA' 不是内部或外部命令,也不是可运行的程序 或批处理文件解决办法相似. 原因一:没有安装jdk,只安装了jre 1 jdk1.7.0_60+jre才是完整的,如果没有安装jdk的话,在cmd里边输入javac就会提示"'JAVAC' 不是内部或外部命令,也不是可运行的程序 或批处理文件" 步骤阅读 2 解决方法是安装jdk END 百度经验:jingyan.baidu.com 安装了JD

Tomcat学习笔记 - 错误日志 - Tomcat安装版安装后第二次启动后闪退(转)-- javac不是内部或外部命令 -- 配置java环境教程

如果安装成功并且安装完成第一次启动是成功的,第二次就闪退的话,原因之一是没有配置java的环境.在网上找的配制方法有很多错误,测试javac命令时候会提示不是内部或外部命令,找到一个正确的教程.如下,转载自百度经验:http://jingyan.baidu.com/article/1e5468f924210a484961b7f0.html 'JAVA' 不是内部或外部命令,也不是可运行的程序 或批处理文件解决办法相似. 原因一:没有安装jdk,只安装了jre 1 jdk1.7.0_60+jre才

npm安装完bower,使用时提示bower不是内部或外部命令

归根结底还是环境变量的问题,但是配了好几次没配成功,最后就直接把装好的node里面的复制到系统创建的环境变量目录下,问题解决! 问题描述:我们安装node.js,npm,通过npm安装bower一路正常,结果在项目里安装bower出错,提示bower不是内部或外部命令 一般装完npm后,会为当前用户自动创建环境变量如下 C:\User\用户名\Appdata\roming\npm 我们到此目录下找找看,有没有我们的bower,没有就把node.js里面安装好的复制进去

node 安装express提示不是内部或外部命令

在命令行中执行 "npm install -g express"等待下载并且自动完成安装. 测试express完成安装的一个方法就是查看其版本号,执行命令 "express -V"正常情况下回输出版本号如图,但有遇到不正常情况的,会提示"express不是内部或外部命令",这样问题就来了,这是什么原因呢? 有两种可能: ①在第二步安装node是没有添加环境变量,这种情况把node添加的环境变量即可解决. ②express 4.x版本中将命令工具分

node.js安装后输入“node -v”提示'node' 不是内部或外部命令,也不是可运行的程序的解决方法

换个电脑,重新搭配环境的时候遇到的问题.node.js已经在官网进行下载安装了,但是VScode里面显示不是内部的命令,也不是可运行的程序 但是在cmd控制台还是能查到的 借助网上的方法进行了测试和调配并没有成功,路径我也进行了配置了,不知道是哪里的问题,先在这里凑合着用吧 ps:windows+r----<  输入cmd-------<打开控制台(此处可以使用命令) 网站上的方法: https://blog.csdn.net/KingJulien2/article/details/73302