Загрузка...

Не скачивается модуль pip

Тема в разделе Python создана пользователем тесак 9 апр 2025. 128 просмотров

  1. тесак
    тесак Автор темы 9 апр 2025 у меня деньги в крипте — заблокированы карты 428 11 дек 2022
    Defaulting to user installation because normal site-packages is not writeable
    Collecting win32gui
    Using cached win32gui-221.5.tar.gz (605 kB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... error
    error: subprocess-exited-with-error

    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> [26 lines of output]
    <string>:35: SyntaxWarning: invalid escape sequence '\d'
    Traceback (most recent call last):
    File "C:\Users\shadowfimoZ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
    main()
    ~~~~^^
    File "C:\Users\shadowfimoZ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\shadowfimoZ\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
    return hook(config_settings)
    File "C:\Temp\pip-build-env-xgj7cg3i\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Temp\pip-build-env-xgj7cg3i\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
    self.run_setup()
    ~~~~~~~~~~~~~~^^
    File "C:\Temp\pip-build-env-xgj7cg3i\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
    super().run_setup(setup_script=setup_script)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Temp\pip-build-env-xgj7cg3i\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
    exec(code, locals())
    ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 27, in <module>
    File "C:\Temp\pip-install-ewtw1mt5\win32gui_b95010e3e90b48d6baf70afbf502153d\win32\distutils\gui.py", line 6, in <module>
    from .command import win32_build_ext
    ModuleNotFoundError: No module named 'win32.distutils.command'
    [end of output]

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

    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
     
    1. gurhgrihfehi
      тесак,
      ставь pywin32 вместо win32gui это одно и то же
      команда pip install pywin32
      если не помогло:
      проблема в python 3.13 он новый pywin32 может не поддерживать
      попробуй python 3.11 или 3.12
      нужны visual c++ build tools установи с сайта майкрософт
      обнови pip python -m pip install --upgrade pip setuptools wheel
  2. ЧернильныйБро
    ЧернильныйБро 9 апр 2025 На подарок близкому человеку до 20 августа - 10.000₽/15.000₽
    pip install win32.distutils.command
     
  3. Lacrimosa
    Lacrimosa 9 апр 2025 7 16 окт 2024
    pip install pywin32
     
  4. kekch127
    kekch127 10 апр 2025 826 5 окт 2020
    если чуть-чуть почитать, то можно увидеть ошибку. win32.distutils.command скачай, либо скачай архив и распакуй в site-packages
     
Top
Загрузка...