skip to Main Content

I’m new and i’m trying to learn to use PreTeXt. My first language is not English, so I apologize if I express myself wrong.

I’m following the video to install PreTeXt on my computer, but I get an error. I was wondering if someone could explain to me why I’m getting the error. The error is the next:


carlo@Carlos_ASUS MINGW64 ~
$ pip install pretextbook
Collecting pretextbook
  Using cached pretextbook-0.8.3-py3-none-any.whl.metadata (9.3 kB)
Collecting CodeChat-Server<0.3.0,>=0.2.6 (from pretextbook)
  Using cached CodeChat_Server-0.2.25-py3-none-any.whl.metadata (4.2 kB)
Collecting GitPython<4,>=3 (from pretextbook)
  Using cached GitPython-3.1.43-py3-none-any.whl.metadata (13 kB)
Collecting PyPDF2<2.6,>=2.5 (from pretextbook)
  Using cached PyPDF2-2.5.0-py3-none-any.whl.metadata (6.0 kB)
Collecting click<9,>=8 (from pretextbook)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting click-log<0.5,>=0.4 (from pretextbook)
  Using cached click_log-0.4.0-py2.py3-none-any.whl.metadata (1.2 kB)
Collecting ghp-import<3,>=2 (from pretextbook)
  Using cached ghp_import-2.1.0-py3-none-any.whl.metadata (7.2 kB)
Collecting lxml<5.0,>=4.8 (from pretextbook)
  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 pdfCropMargins<1.1.0,>=1.0.9 (from pretextbook)
  Using cached pdfCropMargins-1.0.9-py2.py3-none-any.whl
Collecting pyppeteer<2.0.0,>=1.0.2 (from pretextbook)
  Using cached pyppeteer-1.0.2-py3-none-any.whl.metadata (6.9 kB)
Collecting requests<3,>=2 (from pretextbook)
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting single-version<2,>=1 (from pretextbook)
  Using cached single_version-1.6.0-py3-none-any.whl.metadata (3.8 kB)
Collecting watchdog<3,>=2 (from pretextbook)
  Using cached watchdog-2.3.1-py3-none-win_amd64.whl.metadata (36 kB)
Collecting colorama (from click<9,>=8->pretextbook)
  Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting bottle (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached bottle-0.13.2-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting cherrypy (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached CherryPy-18.10.0-py3-none-any.whl.metadata (8.7 kB)
Collecting CodeChat (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached CodeChat-1.9.4-py3-none-any.whl.metadata (5.1 kB)
Collecting json-five (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached json_five-1.1.2-py3-none-any.whl.metadata (5.2 kB)
Collecting markdown (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Collecting psutil (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached psutil-6.1.0-cp37-abi3-win_amd64.whl.metadata (23 kB)
Collecting strictyaml (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached strictyaml-1.7.3-py3-none-any.whl.metadata (11 kB)
Collecting thrift (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached thrift-0.21.0-py3-none-any.whl
Collecting typer[all] (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached typer-0.13.0-py3-none-any.whl.metadata (15 kB)
Collecting websockets (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached websockets-14.1-cp313-cp313-win_amd64.whl.metadata (6.9 kB)
Collecting python-dateutil>=2.8.1 (from ghp-import<3,>=2->pretextbook)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting gitdb<5,>=4.0.1 (from GitPython<4,>=3->pretextbook)
  Using cached gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)
Collecting wheel (from pdfCropMargins<1.1.0,>=1.0.9->pretextbook)
  Using cached wheel-0.45.0-py3-none-any.whl.metadata (2.3 kB)
Collecting pillow>=9.0.0 (from pdfCropMargins<1.1.0,>=1.0.9->pretextbook)
  Using cached pillow-11.0.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting appdirs<2.0.0,>=1.4.3 (from pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached appdirs-1.4.4-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting certifi>=2021 (from pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Collecting importlib-metadata>=1.4 (from pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached importlib_metadata-8.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting pyee<9.0.0,>=8.1.0 (from pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached pyee-8.2.2-py2.py3-none-any.whl.metadata (1.7 kB)
Collecting tqdm<5.0.0,>=4.42.1 (from pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached tqdm-4.67.0-py3-none-any.whl.metadata (57 kB)
Collecting urllib3<2.0.0,>=1.25.8 (from pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached urllib3-1.26.20-py2.py3-none-any.whl.metadata (50 kB)
Collecting websockets (from CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached websockets-10.4-cp313-cp313-win_amd64.whl
Collecting charset-normalizer<4,>=2 (from requests<3,>=2->pretextbook)
  Using cached charset_normalizer-3.4.0-cp313-cp313-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests<3,>=2->pretextbook)
  Using cached idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->GitPython<4,>=3->pretextbook)
  Using cached smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)
Collecting zipp>=3.20 (from importlib-metadata>=1.4->pyppeteer<2.0.0,>=1.0.2->pretextbook)
  Using cached zipp-3.21.0-py3-none-any.whl.metadata (3.7 kB)
Collecting six>=1.5 (from python-dateutil>=2.8.1->ghp-import<3,>=2->pretextbook)
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting cheroot>=8.2.1 (from cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached cheroot-10.0.1-py3-none-any.whl.metadata (7.1 kB)
Collecting portend>=2.1.1 (from cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached portend-3.2.0-py3-none-any.whl.metadata (3.6 kB)
Collecting more-itertools (from cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached more_itertools-10.5.0-py3-none-any.whl.metadata (36 kB)
Collecting zc.lockfile (from cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached zc.lockfile-3.0.post1-py3-none-any.whl.metadata (6.2 kB)
Collecting jaraco.collections (from cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached jaraco.collections-5.1.0-py3-none-any.whl.metadata (3.9 kB)
Collecting docutils>=0.13.1 (from CodeChat->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached docutils-0.21.2-py3-none-any.whl.metadata (2.8 kB)
Collecting pygments>=2.1 (from CodeChat->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting sly>=0.5 (from json-five->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached sly-0.5-py3-none-any.whl.metadata (373 bytes)
Collecting regex (from json-five->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached regex-2024.11.6-cp313-cp313-win_amd64.whl.metadata (41 kB)
WARNING: typer 0.13.0 does not provide the extra 'all'
Collecting typing-extensions>=3.7.4.3 (from typer[all]->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting shellingham>=1.3.0 (from typer[all]->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
Collecting rich>=10.11.0 (from typer[all]->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
Collecting jaraco.functools (from cheroot>=8.2.1->cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached jaraco.functools-4.1.0-py3-none-any.whl.metadata (2.9 kB)
Collecting tempora>=1.8 (from portend>=2.1.1->cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached tempora-5.7.0-py3-none-any.whl.metadata (3.2 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer[all]->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting jaraco.text (from jaraco.collections->cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached jaraco.text-4.0.0-py3-none-any.whl.metadata (3.7 kB)
Collecting setuptools (from zc.lockfile->cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached setuptools-75.5.0-py3-none-any.whl.metadata (6.8 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer[all]->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
Collecting jaraco.context>=4.1 (from jaraco.text->jaraco.collections->cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached jaraco.context-6.0.1-py3-none-any.whl.metadata (4.1 kB)
Collecting autocommand (from jaraco.text->jaraco.collections->cherrypy->CodeChat-Server<0.3.0,>=0.2.6->pretextbook)
  Using cached autocommand-2.2.2-py3-none-any.whl.metadata (15 kB)
Using cached pretextbook-0.8.3-py3-none-any.whl (1.3 MB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached click_log-0.4.0-py2.py3-none-any.whl (4.3 kB)
Using cached CodeChat_Server-0.2.25-py3-none-any.whl (135 kB)
Using cached ghp_import-2.1.0-py3-none-any.whl (11 kB)
Using cached GitPython-3.1.43-py3-none-any.whl (207 kB)
Using cached PyPDF2-2.5.0-py3-none-any.whl (200 kB)
Using cached pyppeteer-1.0.2-py3-none-any.whl (83 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached single_version-1.6.0-py3-none-any.whl (4.2 kB)
Using cached watchdog-2.3.1-py3-none-win_amd64.whl (80 kB)
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
Using cached charset_normalizer-3.4.0-cp313-cp313-win_amd64.whl (102 kB)
Using cached gitdb-4.0.11-py3-none-any.whl (62 kB)
Using cached idna-3.10-py3-none-any.whl (70 kB)
Using cached importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
Using cached pillow-11.0.0-cp313-cp313-win_amd64.whl (2.6 MB)
Using cached pyee-8.2.2-py2.py3-none-any.whl (12 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached tqdm-4.67.0-py3-none-any.whl (78 kB)
Using cached urllib3-1.26.20-py2.py3-none-any.whl (144 kB)
Using cached bottle-0.13.2-py2.py3-none-any.whl (104 kB)
Using cached CherryPy-18.10.0-py3-none-any.whl (349 kB)
Using cached CodeChat-1.9.4-py3-none-any.whl (81 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Using cached json_five-1.1.2-py3-none-any.whl (21 kB)
Using cached Markdown-3.7-py3-none-any.whl (106 kB)
Using cached psutil-6.1.0-cp37-abi3-win_amd64.whl (254 kB)
Using cached strictyaml-1.7.3-py3-none-any.whl (123 kB)
Using cached wheel-0.45.0-py3-none-any.whl (72 kB)
Using cached cheroot-10.0.1-py3-none-any.whl (104 kB)
Using cached docutils-0.21.2-py3-none-any.whl (587 kB)
Using cached more_itertools-10.5.0-py3-none-any.whl (60 kB)
Using cached portend-3.2.0-py3-none-any.whl (5.3 kB)
Using cached pygments-2.18.0-py3-none-any.whl (1.2 MB)
Using cached rich-13.9.4-py3-none-any.whl (242 kB)
Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached sly-0.5-py3-none-any.whl (28 kB)
Using cached smmap-5.0.1-py3-none-any.whl (24 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Using cached zipp-3.21.0-py3-none-any.whl (9.6 kB)
Using cached jaraco.collections-5.1.0-py3-none-any.whl (11 kB)
Using cached regex-2024.11.6-cp313-cp313-win_amd64.whl (273 kB)
Using cached typer-0.13.0-py3-none-any.whl (44 kB)
Using cached zc.lockfile-3.0.post1-py3-none-any.whl (9.8 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached tempora-5.7.0-py3-none-any.whl (13 kB)
Using cached jaraco.functools-4.1.0-py3-none-any.whl (10 kB)
Using cached jaraco.text-4.0.0-py3-none-any.whl (11 kB)
Using cached setuptools-75.5.0-py3-none-any.whl (1.2 MB)
Using cached jaraco.context-6.0.1-py3-none-any.whl (6.8 kB)
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached autocommand-2.2.2-py3-none-any.whl (19 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
  ╰─> [112 lines of output]
      <string>:67: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      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 buildlib.win-amd64-cpython-313lxml
      copying srclxmlbuilder.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlcssselect.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxmldoctestcompare.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlElementInclude.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlpyclasslookup.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlsax.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlusedoctest.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxml_elementpath.py -> buildlib.win-amd64-cpython-313lxml
      copying srclxml__init__.py -> buildlib.win-amd64-cpython-313lxml
      creating buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludes__init__.py -> buildlib.win-amd64-cpython-313lxmlincludes
      creating buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlclean.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmldefs.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmldiff.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlformfill.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-cpython-313lxmlhtml
      copying srclxmlhtml__init__.py -> buildlib.win-amd64-cpython-313lxmlhtml
      creating buildlib.win-amd64-cpython-313lxmlisoschematron
      copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-cpython-313lxmlisoschematron
      copying srclxmletree.h -> buildlib.win-amd64-cpython-313lxml
      copying srclxmletree_api.h -> buildlib.win-amd64-cpython-313lxml
      copying srclxmllxml.etree.h -> buildlib.win-amd64-cpython-313lxml
      copying srclxmllxml.etree_api.h -> buildlib.win-amd64-cpython-313lxml
      copying srclxmletree.pyx -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlobjectify.pyx -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlapihelpers.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlclasslookup.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlcleanup.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmldebug.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmldocloader.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmldtd.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlextensions.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmliterparse.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlnsclasses.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlobjectpath.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlparser.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlparsertarget.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlproxy.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlpublic-api.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlreadonlytree.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlrelaxng.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlsaxparser.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlschematron.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlserializer.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxinclude.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxmlerror.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxmlid.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxmlschema.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxpath.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxslt.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlxsltext.pxi -> buildlib.win-amd64-cpython-313lxml
      copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludestree.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesuri.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-cpython-313lxmlincludes
      copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-cpython-313lxmlincludes
      creating buildlib.win-amd64-cpython-313lxmlisoschematronresourcesrng
      copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesrng
      creating buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsl
      copying srclxmlisoschematronresourcesxslRNG2Schtrn.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsl
      copying srclxmlisoschematronresourcesxslXSD2Schtrn.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsl
      creating buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-cpython-313lxmlisoschematronresourcesxsliso-schematron-xslt1
      running build_ext
      building 'lxml.etree' extension
      creating buildtemp.win-amd64-cpython-313Releasesrclxml
      "C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.42.34433binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrclxmlincludes -IC:UserscarloAppDataLocalProgramsPythonPython313include -IC:UserscarloAppDataLocalProgramsPythonPython313Include "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.42.34433include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" /Tcsrclxmletree.c /Fobuildtemp.win-amd64-cpython-313Releasesrclxmletree.obj -w
      cl : L¡nea de comandos warning D9025 : invalidando '/W3' con '/w'
      etree.c
      C:UserscarloAppDataLocalTemppip-install-zpym62z5lxml_41b9df6ce47e4a639416577623f80a97srclxmlincludes/etree_defs.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'libxml/xmlversion.h': No such file or directory
      Compile failed: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe' failed with exit code 2
      "C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.42.34433binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.42.34433include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22621.0ucrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22621.0\cppwinrt" /TcC:UserscarloAppDataLocalTempxmlXPathInit0e12wous.c /FoUserscarloAppDataLocalTempxmlXPathInit0e12wous.obj
      xmlXPathInit0e12wous.c
      C:UserscarloAppDataLocalTempxmlXPathInit0e12wous.c(1): fatal error C1083: No se puede abrir el archivo incluir: '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.42.34433\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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lxml)

The first error that I got indicated that it required Microsoft Visual C++, but I already installed it and the same error continues to appear.

2

Answers


  1. Chosen as BEST ANSWER

    Apparently the video is out of date and the correct command to install it is:

    pip install pretext
    

  2. pretextbook declares dependency lxml<5.0,>=4.8 so pip tried lxml version 4.9.4, the latest before 5.0. That version is not compatible with Python 3.13, it provides wheels for Pythons up to 3.12 but not 3.13.

    Either you compile from sources which is hard. Or use Python 3.12 or lower version.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search