Python Forum
[PyQt] Cannot get PyQt5 to import - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [PyQt] Cannot get PyQt5 to import (/thread-25559.html)



Cannot get PyQt5 to import - DoDods - Apr-03-2020

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!


RE: Cannot get PyQt5 to import - Larz60+ - Apr-03-2020

Please show how you tried to import, and the complete unaltered error traceback.
Thank You


RE: Cannot get PyQt5 to import - DoDods - Apr-03-2020

(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!