Skip to content

pip install farben, does not work #23

@mjmlvp

Description

@mjmlvp

Hello,

so just giving the command
pip install farben

I get the following errors:
(if you need additional information, please let me know. I am on windows 11)

C:\Users\mpott\Documents\NHA Grafisch Vormgeven\Pantone etc>pip install farben
Defaulting to user installation because normal site-packages is not writeable
Collecting farben
Using cached farben-2.1.0-py3-none-any.whl.metadata (7.3 kB)
Collecting beautifulsoup4<5,>=4 (from farben)
Using cached beautifulsoup4-4.13.4-py3-none-any.whl.metadata (3.8 kB)
Collecting click<9,>=8 (from farben)
Using cached click-8.2.1-py3-none-any.whl.metadata (2.5 kB)
Collecting lxml<5,>=4 (from farben)
Using cached lxml-4.9.4.tar.gz (3.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting requests<3,>=2 (from farben)
Using cached requests-2.32.4-py3-none-any.whl.metadata (4.9 kB)
Collecting soupsieve>1.2 (from beautifulsoup4<5,>=4->farben)
Using cached soupsieve-2.7-py3-none-any.whl.metadata (4.6 kB)
Collecting typing-extensions>=4.0.0 (from beautifulsoup4<5,>=4->farben)
Using cached typing_extensions-4.14.0-py3-none-any.whl.metadata (3.0 kB)
Collecting colorama (from click<9,>=8->farben)
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting charset_normalizer<4,>=2 (from requests<3,>=2->farben)
Using cached charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl.metadata (36 kB)
Collecting idna<4,>=2.5 (from requests<3,>=2->farben)
Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests<3,>=2->farben)
Using cached urllib3-2.4.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests<3,>=2->farben)
Using cached certifi-2025.6.15-py3-none-any.whl.metadata (2.4 kB)
Using cached farben-2.1.0-py3-none-any.whl (19 kB)
Using cached beautifulsoup4-4.13.4-py3-none-any.whl (187 kB)
Using cached click-8.2.1-py3-none-any.whl (102 kB)
Using cached requests-2.32.4-py3-none-any.whl (64 kB)
Using cached charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl (105 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached urllib3-2.4.0-py3-none-any.whl (128 kB)
Using cached certifi-2025.6.15-py3-none-any.whl (157 kB)
Using cached soupsieve-2.7-py3-none-any.whl (36 kB)
Using cached typing_extensions-4.14.0-py3-none-any.whl (43 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Building wheels for collected packages: lxml
Building wheel for lxml (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for lxml (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [126 lines of output]
:67: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
C:\Users\mpott\AppData\Local\Temp\pip-build-env-0__3am9n\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: BSD License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  Building lxml version 4.9.4.
  Building without Cython.
  Building against pre-built libxml2 andl libxslt libraries
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\builder.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\cssselect.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\doctestcompare.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\ElementInclude.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\sax.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\usedoctest.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\_elementpath.py -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\__init__.py -> build\lib.win-amd64-cpython-313\lxml
  creating build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\__init__.py -> build\lib.win-amd64-cpython-313\lxml\includes
  creating build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\builder.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\clean.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\defs.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\diff.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\formfill.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\html5parser.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\soupparser.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\_diffcommand.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\_html5builder.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\_setmixin.py -> build\lib.win-amd64-cpython-313\lxml\html
  copying src\lxml\html\__init__.py -> build\lib.win-amd64-cpython-313\lxml\html
  creating build\lib.win-amd64-cpython-313\lxml\isoschematron
  copying src\lxml\isoschematron\__init__.py -> build\lib.win-amd64-cpython-313\lxml\isoschematron
  copying src\lxml\etree.h -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\etree_api.h -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\lxml.etree.h -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\etree.pyx -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\objectify.pyx -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\apihelpers.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\classlookup.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\cleanup.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\debug.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\docloader.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\dtd.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\extensions.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\iterparse.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\nsclasses.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\objectpath.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\parser.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\parsertarget.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\proxy.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\public-api.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\readonlytree.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\relaxng.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\saxparser.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\schematron.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\serializer.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xinclude.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xmlerror.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xmlid.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xmlschema.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xpath.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xslt.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\xsltext.pxi -> build\lib.win-amd64-cpython-313\lxml
  copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\config.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\__init__.pxd -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-cpython-313\lxml\includes
  copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-cpython-313\lxml\includes
  creating build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\rng
  copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\rng
  creating build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl
  copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl
  copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl
  creating build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-cpython-313\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-cpython-313\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-cpython-313\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-cpython-313\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build\temp.win-amd64-cpython-313\Release\src\lxml
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc\lxml\includes -IC:\Python313\include -IC:\Python313\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /Tcsrc\lxml\etree.c /Fobuild\temp.win-amd64-cpython-313\Release\src\lxml\etree.obj -w
  cl : Command line warning D9025 : overriding '/W3' with '/w'
  etree.c
  C:\Users\mpott\AppData\Local\Temp\pip-install-uqvo52ua\lxml_2d677227baaa4e33b434b3873aa8e982\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\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  creating Users\mpott\AppData\Local\Temp
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /TcC:\Users\mpott\AppData\Local\Temp\xmlXPathInit8369mf92.c /FoUsers\mpott\AppData\Local\Temp\xmlXPathInit8369mf92.obj
  xmlXPathInit8369mf92.c
  C:\Users\mpott\AppData\Local\Temp\xmlXPathInit8369mf92.c(1): fatal error C1083: Cannot open include file: '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\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lxml
Failed to build lxml
ERROR: Failed to build installable wheels for some pyproject.toml based projects (lxml)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions