프로그래밍/Python

[Python] Python 3.11에서 PySide2 설치 오류 문제

채윤아빠 2023. 7. 22. 10:34
728x90
반응형

문제점

새로 설치한 PC에서 파이썬 최신 버전인 3.11을 설치한 이후에 PySide2를 설치하려고 하였더니, 다음과 같은 오류가 발생하였습니다.

Collecting PyQt5 (from -r .\requirements.txt (line 3))
  Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl (6.8 MB)
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2
(utel-tester) PS D:\Dev\python\mini\utel-tester> pip install PySide2
ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2

해결 방법

파이썬을 3.10으로 추가 설치하고, 3.10에서는 정상적으로 설치가 잘 되었습니다. 즉, PySide2의 설치 시, "ERROR: No matching distribution found for PySide2" 오류가 발생하는 이유는 해당 파이썬 버전을 아직 지원하지 않기 때문입니다.

결론적으로 해당 파이썬을 지원해 줄때까지 기다리거나, PySide2 대신 PyQt5만 이용하면 됩니다.


참고자료