Как установить PyQt6?

Когда я пишу в терминал pip install pyqt6, то появляется ошибка:

error: subprocess-exited-with-error
     
  × Building wheel for PyQt6-sip (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'PyQt6.sip' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build` `Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

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

Python Interpreter: Python 3.8 (<name project>).
В других проектах установить PyQt6 получалось, но после того, как начал создавать проекты с git, то у меня появилась эта проблема.

  • Я пробовал по ссылке установить "Microsoft C++ Build Tools".

  • Пробовал через File -> Settings -> Project -> Python Interpreter, после чего нажал "+" и выбрал PyQt6, выводит ту же самую ошибку.

  • Также пробовал обновить wheel, setuptools - не помогло, ошибка та же.


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