简体   繁体   中英

module PySide6 not found

I'm currently working with the PySide6 module.(vscode) But for some reason it doesn't work anymore,it worked before but it doesn't now. When I try to run my project this is the error I get:

ModuleNotFoundError: No module named 'PySide6'
from PySide6.QtWidgets import QApplication, QMessageBox, QFileDialog
from PySide6.QtCore import QResource, QFile, QIODevice
from PySide6 import QtWidgets, QtCore

Updating pip, reinstalling PySide6, Updating PySide6, running my project differently, it all doesn't work... I still get the same error ModuleNotFoundError: No module named 'PySide6' . Anyone who can help me with this?

You can use shortcuts "Ctrl+Shift+P" and type "Python: Select Interpreter" to choose the correct interpreter.

Then use command pip install PySide6 in the terminal.

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