使用PySide6/shiboken6导入恐怖

2024-09-25 00:29:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试让PySide6在Python 3.8.0中运行。安装顺利:

C:\>pip install pyside6
Collecting pyside6
  Using cached PySide6-6.0.0-6.0.0-cp36.cp37.cp38.cp39-none-win_amd64.whl (62.4 MB)
Collecting shiboken6==6.0.0
  Using cached shiboken6-6.0.0-6.0.0-cp36.cp37.cp38.cp39-none-win_amd64.whl (2.3 MB)
Installing collected packages: shiboken6, pyside6
Successfully installed pyside6-6.0.0 shiboken6-6.0.0

但我遇到了一个导入错误:

Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PySide6
PySide6/__init__.py: Unable to import shiboken6 from , C:\Python38\python38.zip, C:\Python38\DLLs, C:\Python38\lib, C:\Python38, C:\Python38\lib\site-packages
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python38\lib\site-packages\PySide6\__init__.py", line 107, in <module>
    _setupQtDirectories()
  File "C:\Python38\lib\site-packages\PySide6\__init__.py", line 57, in _setupQtDirectories
    import shiboken6
  File "C:\Python38\lib\site-packages\shiboken6\__init__.py", line 25, in <module>
    from .shiboken6 import *
ImportError: DLL load failed while importing shiboken6: The specified procedure could not be found.

我做错了什么


Tags: inpyimportinitlibpackageslinesite