本帖最后由 ahehaoyu 于 2024-9-10 10:42 编辑
2024.09.10 真是mmp 安装python 64位就没这个问题了
萌新学习pyqt6,死在第一步
问GPT也没问出个所以然来
Python版本3.7.0
[Asm] 纯文本查看 复制代码 (base) C:\Users\Administrator\Desktop\pyqt>pip install PyQt6
Looking in indexes: [url=https://mirrors.aliyun.com/pypi/simple]https://mirrors.aliyun.com/pypi/simple[/url]
Collecting PyQt6
Using cached [url=https://mirrors.aliyun.com/pypi/packages/8c/2b/6fe0409501798abc780a70cab48c39599742ab5a8168e682107eaab78fca/PyQt6-6.6.1.tar.gz]https://mirrors.aliyun.com/pypi/ ... /PyQt6-6.6.1.tar.gz[/url] (1.0 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
╰─> [31 lines of output]
Querying qmake about your Qt installation...
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "d:\anaconda3\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "d:\anaconda3\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "d:\anaconda3\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-d5odxe2a\overlay\Lib\site-packages\sipbuild\api.py", line 47, in build_wheel
arguments=_convert_config_settings(config_settings))
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-d5odxe2a\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 92, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-d5odxe2a\overlay\Lib\site-packages\sipbuild\project.py", line 603, in setup
self.update(tool)
File "project.py", line 165, in update
sipbuild.exceptions.UserException
Traceback (most recent call last):
File "d:\anaconda3\lib\weakref.py", line 624, in _exitfunc
f()
File "d:\anaconda3\lib\weakref.py", line 548, in __call__
return info.func(*info.args, **(info.kwargs or {}))
File "d:\anaconda3\lib\tempfile.py", line 795, in _cleanup
_shutil.rmtree(name)
File "d:\anaconda3\lib\shutil.py", line 507, in rmtree
return _rmtree_unsafe(path, onerror)
File "d:\anaconda3\lib\shutil.py", line 395, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "d:\anaconda3\lib\shutil.py", line 393, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\tmpy4jiakmg'
[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.
|