简体   繁体   中英

stuck with PyQt5 import error in python 3.6 32bit

I already used python 3.6 and anaconda currently i download python3.6 32bit, my os is win7, 64bit though, for kinda neededs

I checked py3.6 32bit download successfully to next step i try to install PyQt5 from cmd like "pip install PyQt5", check it as well it done. But it can't import in python32(i try to code from cmd by admin's author) with following error:

"ModuleNotFoundError: No module named 'PyQt5'"

I thought it cause a wrong path. So i directly redownload it(PyQt5) on web into python32 lib directory but no joy after that, I don't know why the issue still exist

what can i catch this matter?

please don't answer redownload all you need, existing has lots settings and libraries,

any suggestion for me?

Get the appropriate (32-bit or 64-bit) installer from here: https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/ . During the installation it will complain about not finding Python 3.5, just ignore the error. When it asks you for installation directory, point to your Python 3.6 folder and install it. I tried this on my PC with Python 3.6 32-bit and the following script ran fine:

import sys
import PyQt5
print("hello")

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