pip3 install pyqt5-tools 설치 방법
pyqt5를 설치하고 designer를 실행시키려고 보니 없단다. 다시 확인해보니 pyqt5-tools 설치하면서 에러가 발생!
pyqt5-tools 설치 에러 내용:
D:\\plotAudio>pip3 install pyqt5-tools
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\UserName\AppData\Local\Temp\pip-build-env-dtkhtfgc\overlay\Lib\site-packages\sipbuild\api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "C:\Users\UserName\AppData\Local\Temp\pip-build-env-dtkhtfgc\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\UserName\AppData\Local\Temp\pip-build-env-dtkhtfgc\overlay\Lib\site-packages\sipbuild\project.py", line 585, in setup
self.apply_user_defaults(tool)
File "C:\Users\UserName\AppData\Local\Temp\pip-install-1zq1jjsw\pyqt5_fb1b480d85db4203ba5839829d56f26a\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\UserName\AppData\Local\Temp\pip-build-env-dtkhtfgc\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\UserName\AppData\Local\Temp\pip-build-env-dtkhtfgc\overlay\Lib\site-packages\sipbuild\project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\UserName\AppData\Local\Temp\pip-build-env-dtkhtfgc\overlay\Lib\site-packages\pyqtbuild\builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip available: 22.2.2 -> 22.3
[notice] To update, run: python.exe -m pip install --upgrade pip
해결 방법
찾아보니 pyqt5는 python 3.9까지 지원된다 함. 현재 3.10이 설치되어 있었다.
결국 python 3.9새로 설치해서 해결했다!
'공부하며놀자 > 프로그래밍' 카테고리의 다른 글
[python][pytube] youtube 영상 다운로드 (1) | 2022.10.19 |
---|---|
[python][matplotlib] 파이썬에서 그래프 그리기 plot graph #2 x축 동기화 싱크 맞추기 (0) | 2022.10.17 |
[python][matplotlib] 파이썬에서 그래프 그리기 plot graph (0) | 2022.10.17 |
[Python] logging logger 관련 내용 (0) | 2022.09.08 |
[C#]Abstract class (0) | 2022.04.27 |
댓글