Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/344.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python PySide 2已成功安装,但Shiboken 2未成功安装_Python_Qt_Pyside_Python Module - Fatal编程技术网

Python PySide 2已成功安装,但Shiboken 2未成功安装

Python PySide 2已成功安装,但Shiboken 2未成功安装,python,qt,pyside,python-module,Python,Qt,Pyside,Python Module,我已成功地在Python 3.6.4上构建并安装了PySide2。在Windows 10操作系统上(默认,不是Anaconda) 但是,尚未安装shiboken2。如何安装shiboken2?我知道此模块的代码附在PySide2安装文件中 我怀疑构建为DLL文件的C++代码无法在Python中导入,因为缺少shiboken2。但是,这种导入在蟒蛇环境中运行良好。但是目前我不想使用Anaconda,因为有旧版本的Qt(5.6,但我需要安装5.9.x)和“PySide2”。刚才我发现shiboken

我已成功地在Python 3.6.4上构建并安装了
PySide2
Windows 10操作系统上(默认,不是Anaconda)

但是,尚未安装shiboken2。如何安装shiboken2?我知道此模块的代码附在
PySide2
安装文件中


我怀疑构建为DLL文件的C++代码无法在Python中导入,因为缺少
shiboken2
。但是,这种导入在蟒蛇环境中运行良好。但是目前我不想使用Anaconda,因为有旧版本的Qt(
5.6
,但我需要安装
5.9.x
)和“PySide2”。

刚才我发现
shiboken2
可以这样导入:

    from PySide2 import shiboken2
因此,在导入我自己的文件之前,必须添加上面的行