pip安装包不工作,建议libxml2,libxslt没有安装,但它们是?

qeeaahzv  于 2021-08-20  发布在  Java
关注(0)|答案(1)|浏览(374)

我正在尝试安装footprintsapi软件包:https://pypi.org/project/footprintsapi/
python版本3.8.5。我在Windows10工作计算机上使用anaconda,这意味着有时我可以自己安装东西,有时我必须使用它进行远程会话,而他们似乎不了解任何与python软件包相关的内容。我真的不明白为什么我可以自己安装一些东西,而其他的不可以,我所有的其他工作都是在我的个人mac上完成的。
当我尝试运行pip安装footprintsapi时,我得到以下结果:

Using cached footprintsapi-1.0.5-py3-none-any.whl (16 kB)
Requirement already satisfied: certifi~=2019.3.9 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (2019.3.9)
Requirement already satisfied: isodate~=0.6.0 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (0.6.0)
Requirement already satisfied: urllib3~=1.24.3 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (1.24.3)
Requirement already satisfied: chardet~=3.0.4 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (3.0.4)
Requirement already satisfied: idna~=2.8 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (2.8)
Requirement already satisfied: six~=1.12.0 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (1.12.0)
Requirement already satisfied: cached-property~=1.5.1 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (1.5.1)
Requirement already satisfied: defusedxml~=0.6.0 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (0.6.0)
Requirement already satisfied: zeep~=3.3.1 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (3.3.1)
Requirement already satisfied: appdirs~=1.4.3 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (1.4.3)
Requirement already satisfied: pytz~=2019.1 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (2019.1)
Requirement already satisfied: attrs~=19.1.0 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (19.1.0)
Requirement already satisfied: requests~=2.21.0 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (2.21.0)
Requirement already satisfied: requests-toolbelt~=0.9.1 in c:\users\mrb716\anaconda3\lib\site-packages (from footprintsapi) (0.9.1)
Collecting lxml~=4.3.3
  Using cached lxml-4.3.5.tar.gz (4.4 MB)
Building wheels for collected packages: lxml
  Building wheel for lxml (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\mrb716\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mrb716\\AppData\\Local\\Temp\\pip-install-b4buy16q\\lxml_125a9403a5f841198be8b7308a743ba9\\setup.py'"'"'; __file__='"'"'C:\\Users\\mrb716\\AppData\\Local\\Temp\\pip-install-b4buy16q\\lxml_125a9403a5f841198be8b7308a743ba9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\mrb716\AppData\Local\Temp\pip-wheel-c3fraqkv'
       cwd: C:\Users\mrb716\AppData\Local\Temp\pip-install-b4buy16q\lxml_125a9403a5f841198be8b7308a743ba9\
  Complete output (97 lines):
  Building lxml version 4.3.5.
  Building without Cython.
  ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

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

  Using build configuration of libxslt
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\lxml
  copying src\lxml\builder.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\cssselect.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\sax.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\_elementpath.py -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\__init__.py -> build\lib.win-amd64-3.8\lxml
  creating build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\__init__.py -> build\lib.win-amd64-3.8\lxml\includes
  creating build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\builder.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\clean.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\defs.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\diff.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\_diffcommand.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\_html5builder.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\_setmixin.py -> build\lib.win-amd64-3.8\lxml\html
  copying src\lxml\html\__init__.py -> build\lib.win-amd64-3.8\lxml\html
  creating build\lib.win-amd64-3.8\lxml\isoschematron
  copying src\lxml\isoschematron\__init__.py -> build\lib.win-amd64-3.8\lxml\isoschematron
  copying src\lxml\etree.h -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\etree_api.h -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.8\lxml
  copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\__init__.pxd -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.8\lxml\includes
  copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.8\lxml\includes
  creating build\lib.win-amd64-3.8\lxml\isoschematron\resources
  creating build\lib.win-amd64-3.8\lxml\isoschematron\resources\rng
  copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\rng
  creating build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl
  copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl
  copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl
  creating build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build\temp.win-amd64-3.8
  creating build\temp.win-amd64-3.8\Release
  creating build\temp.win-amd64-3.8\Release\src
  creating build\temp.win-amd64-3.8\Release\src\lxml
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc\lxml\includes -Ic:\users\mrb716\anaconda3\include -Ic:\users\mrb716\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcsrc\lxml\etree.c /Fobuild\temp.win-amd64-3.8\Release\src\lxml\etree.obj -w
  cl : Command line warning D9025 : overriding '/W3' with '/w'
  etree.c
  C:\Users\mrb716\AppData\Local\Temp\pip-install-b4buy16q\lxml_125a9403a5f841198be8b7308a743ba9\src\lxml\includes/etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
  Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  creating Users
  creating Users\mrb716
  creating Users\mrb716\AppData
  creating Users\mrb716\AppData\Local
  creating Users\mrb716\AppData\Local\Temp
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /TcC:\Users\mrb716\AppData\Local\Temp\xmlXPathInitplpghzwh.c /FoUsers\mrb716\AppData\Local\Temp\xmlXPathInitplpghzwh.obj
  xmlXPathInitplpghzwh.c
  C:\Users\mrb716\AppData\Local\Temp\xmlXPathInitplpghzwh.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

*********************************************************************************

  Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?

*********************************************************************************

  ----------------------------------------
  ERROR: Failed building wheel for lxml
  Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, footprintsapi
  Attempting uninstall: lxml
    Found existing installation: lxml 4.6.3
    Uninstalling lxml-4.6.3:
      Successfully uninstalled lxml-4.6.3
    Running setup.py install for lxml ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\mrb716\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mrb716\\AppData\\Local\\Temp\\pip-install-b4buy16q\\lxml_125a9403a5f841198be8b7308a743ba9\\setup.py'"'"'; __file__='"'"'C:\\Users\\mrb716\\AppData\\Local\\Temp\\pip-install-b4buy16q\\lxml_125a9403a5f841198be8b7308a743ba9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\mrb716\AppData\Local\Temp\pip-record-n24q03jt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\mrb716\anaconda3\Include\lxml'
         cwd: C:\Users\mrb716\AppData\Local\Temp\pip-install-b4buy16q\lxml_125a9403a5f841198be8b7308a743ba9\
    Complete output (92 lines):
    Building lxml version 4.3.5.
    Building without Cython.
    ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
  **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.win-amd64-3.8
    creating build\lib.win-amd64-3.8\lxml
    copying src\lxml\builder.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\cssselect.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\sax.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\_elementpath.py -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\__init__.py -> build\lib.win-amd64-3.8\lxml
    creating build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\__init__.py -> build\lib.win-amd64-3.8\lxml\includes
    creating build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\builder.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\clean.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\defs.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\diff.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\_diffcommand.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\_html5builder.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\_setmixin.py -> build\lib.win-amd64-3.8\lxml\html
    copying src\lxml\html\__init__.py -> build\lib.win-amd64-3.8\lxml\html
    creating build\lib.win-amd64-3.8\lxml\isoschematron
    copying src\lxml\isoschematron\__init__.py -> build\lib.win-amd64-3.8\lxml\isoschematron
    copying src\lxml\etree.h -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\etree_api.h -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.8\lxml
    copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\__init__.pxd -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.8\lxml\includes
    copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.8\lxml\includes
    creating build\lib.win-amd64-3.8\lxml\isoschematron\resources
    creating build\lib.win-amd64-3.8\lxml\isoschematron\resources\rng
    copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\rng
    creating build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl
    copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl
    copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl
    creating build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
    running build_ext
    building 'lxml.etree' extension
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    creating build\temp.win-amd64-3.8\Release\src
    creating build\temp.win-amd64-3.8\Release\src\lxml
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc\lxml\includes -Ic:\users\mrb716\anaconda3\include -Ic:\users\mrb716\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcsrc\lxml\etree.c /Fobuild\temp.win-amd64-3.8\Release\src\lxml\etree.obj -w
    cl : Command line warning D9025 : overriding '/W3' with '/w'
    etree.c
    C:\Users\mrb716\AppData\Local\Temp\pip-install-b4buy16q\lxml_125a9403a5f841198be8b7308a743ba9\src\lxml\includes/etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
    Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /TcC:\Users\mrb716\AppData\Local\Temp\xmlXPathInitgmqh3y4v.c /FoUsers\mrb716\AppData\Local\Temp\xmlXPathInitgmqh3y4v.obj
    xmlXPathInitgmqh3y4v.c
    C:\Users\mrb716\AppData\Local\Temp\xmlXPathInitgmqh3y4v.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
  *********************************************************************************
    ----------------------------------------
  Rolling back uninstall of lxml
  Moving to c:\users\mrb716\anaconda3\lib\site-packages\lxml-4.6.3.dist-info\
   from C:\Users\mrb716\Anaconda3\Lib\site-packages\~xml-4.6.3.dist-info
  Moving to c:\users\mrb716\anaconda3\lib\site-packages\lxml\
   from C:\Users\mrb716\Anaconda3\Lib\site-packages\~xml
ERROR: Command errored out with exit status 1: 'c:\users\mrb716\anaconda3\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mrb716\\AppData\\Local\\Temp\\pip-install-b4buy16q\\lxml_125a9403a5f841198be8b7308a743ba9\\setup.py'"'"'; __file__='"'"'C:\\Users\\mrb716\\AppData\\Local\\Temp\\pip-install-b4buy16q\\lxml_125a9403a5f841198be8b7308a743ba9\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\mrb716\AppData\Local\Temp\pip-record-n24q03jt\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\mrb716\anaconda3\Include\lxml' Check the logs for full command output.

我仔细检查了lxml是否已安装,其中包括libxml2和libxslt。我已经尝试使用anaconda和非官方二进制文件安装它,没有任何问题,但当我尝试安装footprintsapi时,仍然会出现这些错误。谢谢你能给予的任何帮助!

k7fdbhmy

k7fdbhmy1#

好的,我认为问题归结到需要lxml 4.3.5的pip版本,它与我的python版本不兼容?github上footprintsapi的最新版本已更新为使用lxml 4.6.3。我不确定这是否是根本问题,但所做的工作是使用 pip install --upgrade https://github.com/Jesus-E-Rodriguez/footprintsapi/tarball/master

相关问题