Ask coding questions

← Back to all posts
How come PyQt5 can't import?
UniqueOstrich18

How come PyQt5 can't import? I've installed it, but it gives an error when I try to import it. (look in "program.py")

The error:
ImportError: No module named PyQt5

Voters
mannixchiweshe
UniqueOstrich18
Comments
hotnewtop
HackermonDev

You have to use python 3.

UniqueOstrich18

@PDanielY Yeah I tried that.

HackermonDev

@UniqueOstrich18 i don't think you did. When i forked your project then changed it to from python2 to python3 it worked

UniqueOstrich18

@PDanielY Ok. It still doesn't work.

HackermonDev

@UniqueOstrich18 oh, maybe trying to create a python 2 repl can putting the contents of program.py in it

UniqueOstrich18

@PDanielY So you want me to create a python 2 repl with the contents of program.py in it? I did that and it gave me this error:

Also, can you upvote this post at https://repl.it/talk/learn/My-Methods-to-Bypass-School-Filters/30421? I put a lot of effort into it.

HackermonDev

@UniqueOstrich18 yes and i am trying one of the things on it if it works i'll upvote the post

UniqueOstrich18

@PDanielY Ok thanks!

HackermonDev

@UniqueOstrich18 the libary only works with python 3 so create a python 3 repl and make sure the code is compatible for python 3 and run it

UniqueOstrich18

@PDanielY Ok, I'll try that.
I just got this error:

UniqueOstrich18

@PDanielY got an error

CoderRudra

@UniqueOstrich18 bruh have you tried pip installing?