简体   繁体   中英

Can't import PySide2

Version:
Python:3.6.8 (32 bit)
PySide2: 5.15.0

my code:

import PySide2.QtCore

print(PySide2.__version__)

but got error:

Traceback (most recent call last):
File "E:/7-Pycharm/contrl_sys_ui/test/qt_test.py", line 1, in <module>
    import PySide2.QtCore
ImportError: DLL load failed: The specified module was not found

I just tried installing and importing in my Google collab, with following commands:

pip install PySide2
import PySide2.QtCore
print(PySide2.__version__)

The outputs were as follows:

在此处输入图像描述

But, my Python version is 3.6.9. However, Can you please try reinstalling this package and let us know?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM