简体   繁体   中英

Why “ModuleNotFoundError: No module named 'PyQt5' ” Error keeps showing?

I tried to install PyQt5 in any possible way, but when I run the code, I get a traceback " ModuleNotFoundError: No module named 'PyQt5' "

在此处输入图像描述

There are several things that could have gone wrong:

  1. You installed the module incorrectly. Have you used it before, or is this your first time importing it? Also, did the console/terminal say it was installed? If you quit too soon, it will not download.
  2. It is in the wrong folder. If it downloads successfully, it should be with your other modules, in the lib or usr folder in python. if you need a list of all modules, just use help("modules")

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