Python Forum

Full Version: Cannot get PyQt5 to import
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

I'm very new to this side of computers and was wondering if I could get a little help.

I have used pip to install both PyQt5 and PyQt-tools they both downloaded with no problem and I can find them in my site-packages folder however when I attempt to import from them into project I get an error.


[Image: qT0Dthb]

thanks a ton!
Please show how you tried to import, and the complete unaltered error traceback.
Thank You
(Apr-03-2020, 05:43 AM)Larz60+ Wrote: [ -> ]Please show how you tried to import, and the complete unaltered error traceback.
Thank You

I've figured out how to fix it and the problem was it was installed correctly into external libraries however not into the actual project lib. a simple copy and paste of the files I needed from the external lib to the project lib did the trick. Just wondering if that's what I was supposed to do with external modules the whole time? I know it's gone a bit off the GUI subject sorry!