Skip to content

Failure to install with pipx (Windows 11 Pro) #14

@nannerpusser

Description

@nannerpusser

Command run:
pipx install textual-paint

Expected outcome: default basic install via pipx.

OS vitals:

  • Edition Windows 11 Pro
  • Version 23H2
  • Installed on ‎4/‎16/‎2024
  • OS build 22631.6199
  • Experience Windows Feature Experience Pack 1000.22700.1108.0

Actual pipx log:

pipx >(setup:1115): pipx version is 1.8.0
pipx >(setup:1116): Default python interpreter is 'C:\Program Files\Python313\python.exe'
pipx >(package_name_from_spec:381): Determined package name: textual-paint
pipx >(package_name_from_spec:382): Package name determined in 0.0s
pipx >(create_venv:164): Creating virtual environment
creating virtual environment...
pipx >(run_subprocess:175): running C:\Program Files\Python313\python.exe -m venv --without-pip C:\Users\<user>\.local\pipx\venvs\textual-paint
pipx >(run_subprocess:175): running <checking pip's availability>
pipx >(run_subprocess:175): running C:\Users\<user>\.local\pipx\venvs\textual-paint\Scripts\python.exe -c import sysconfig; print(sysconfig.get_path('pure
lib'))
pipx >(run_subprocess:175): running C:\Users\<user>\.local\pipx\shared\Scripts\python.exe -c import sysconfig; print(sysconfig.get_path('purelib'))
pipx >(run_subprocess:175): running C:\Users\<user>\.local\pipx\venvs\textual-paint\Scripts\python.exe --version
pipx >(_parsed_package_to_package_or_url:139): cleaned package spec: textual-paint
pipx >(install_package:247): Installing textual-paint
installing textual-paint...
pipx >(run_subprocess:175): running C:\Users\<user>\.local\pipx\venvs\textual-paint\Scripts\python.exe -m pip --no-input install textual-paint
pipx >(subprocess_post_check_handle_pip_error:332): 'C:\\Users\\<user>\\.local\\pipx\\venvs\\textual-paint\\Scripts\\python.exe -m pip --no-input install
textual-paint' failed
pipx >(subprocess_post_check_handle_pip_error:347): Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\<user>\.local\pipx\logs\cmd_2025-12-07_16.49.39_pip_errors.log

pipx >(analyze_pip_output:308): pip seemed to fail to build package:
    'Pillow'

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    ERROR: Failed to build 'Pillow' when getting requirements to build wheel

Following that, the pip log itself:

1 │ PIP STDOUT
   2 │ ----------
   3 │ Collecting textual-paint
   4 │   Using cached textual_paint-0.4.0-py3-none-any.whl.metadata (25 kB)
   5 │ Collecting textual==0.38.1 (from textual-paint)
   6 │   Using cached textual-0.38.1-py3-none-any.whl.metadata (5.8 kB)
   7 │ Collecting rich==13.4.2 (from textual-paint)
   8 │   Using cached rich-13.4.2-py3-none-any.whl.metadata (18 kB)
   9 │ Collecting stransi==0.3.0 (from textual-paint)
  10 │   Using cached stransi-0.3.0-py3-none-any.whl.metadata (3.6 kB)
  11 │ Collecting pyperclip==1.8.2 (from textual-paint)
  12 │   Using cached pyperclip-1.8.2.tar.gz (20 kB)
  13 │   Installing build dependencies: started
  14 │   Installing build dependencies: finished with status 'done'
  15 │   Getting requirements to build wheel: started
  16 │   Getting requirements to build wheel: finished with status 'done'
  17 │   Preparing metadata (pyproject.toml): started
  18 │   Preparing metadata (pyproject.toml): finished with status 'done'
  19 │ Collecting pyfiglet==0.8.post1 (from textual-paint)
  20 │   Using cached pyfiglet-0.8.post1-py2.py3-none-any.whl.metadata (1.3 kB)
  21 │ Collecting Pillow==9.5.0 (from textual-paint)
  22 │   Using cached Pillow-9.5.0.tar.gz (50.5 MB)
  23 │   Installing build dependencies: started
  24 │   Installing build dependencies: finished with status 'done'
  25 │   Getting requirements to build wheel: started
  26 │   Getting requirements to build wheel: finished with status 'error'
  27 │
  28 │ PIP STDERR
  29 │ ----------
  30 │   error: subprocess-exited-with-error
  31 │
  32 │   × Getting requirements to build wheel did not run successfully.
  33 │   │ exit code: 1
  34 │   ╰─> [24 lines of output]
  35 │       Traceback (most recent call last):
  36 │         File "C:\Users\<user>\.local\pipx\shared\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
  37 │           main1;31m()
  38 │           ~~~~1;31m^^
  39 │         File "C:\Users\<user>\.local\pipx\shared\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
  40 │           json_out["return_val"] = hook1;31m(**hook_input["kwargs"])
  41 │                                    ~~~~1;31m^^^^^^^^^^^^^^^^^^^^^^^^
  42 │         File "C:\Users\<user>\.local\pipx\shared\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requir
     │ es_for_build_wheel
  43 │           return hook(config_settings)
  44 │         File "C:\Users\<user>\AppData\Local\Temp\pip-build-env-rbjmds9f\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requi
     │ res_for_build_wheel
  45 │           return self._get_build_requires1;31m(config_settings, requirements=[])
  46 │                  ~~~~~~~~~~~~~~~~~~~~~~~~1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  47 │         File "C:\Users\<user>\AppData\Local\Temp\pip-build-env-rbjmds9f\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_buil
     │ d_requires
  48 │           self.run_setup1;31m()
  49 │           ~~~~~~~~~~~~~~1;31m^^
  50 │         File "C:\Users\<user>\AppData\Local\Temp\pip-build-env-rbjmds9f\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
  51 │           super().run_setup1;31m(setup_script=setup_script)
  52 │           ~~~~~~~~~~~~~~~~~1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^
  53 │         File "C:\Users\<user>\AppData\Local\Temp\pip-build-env-rbjmds9f\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
  54 │           exec1;31m(code, locals())
  55 │           ~~~~1;31m^^^^^^^^^^^^^^^^
  56 │         File "<string>", line 29, in <module>
  57 │         File "<string>", line 26, in get_version
  58 │       1;35mKeyError: '__version__'
  59 │       [end of output]
  60 │
  61 │   note: This error originates from a subprocess, and is likely not a problem with pip.
  62 │ ERROR: Failed to build 'Pillow' when getting requirements to build wheel`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions