Библиотека libxml2 не устанавливается на Python 3.11

Решил установить библиотеку libxml для парсинга и натыкаюсь на данную ошибку:

    C:\Users\Ivan>pip install libxml2-python3
Collecting libxml2-python3
  Using cached libxml2-python3-2.9.5.tar.gz (216 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      failed to find headers for libxml2: update includes_dir
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

C:\Users\Ivan>pip install libxml
ERROR: Could not find a version that satisfies the requirement libxml (from versions: none)
ERROR: No matching distribution found for libxml

Так же решил установить данную библиотеку через .whl при помощи неофициальных библиотек от Кристофера и так же появляется ошибка:

C:\Users\Ivan>pip install C:\Users\Ivan\Downloads\libxml2_python-2.9.3-cp27-none-win32.whl
ERROR: libxml2_python-2.9.3-cp27-none-win32.whl is not a supported wheel on this platform.

Что нужно сделать для установки .whl файла и исправить данную ошибку?


Ответы (0 шт):