(Feb-07-2020, 08:08 PM)Clamantium Wrote: venv\Scripts\python.exeYou are now running from virtual environment venv.
This mean that PyQt5 most be installed first in this environment.
Configure a Python interpreter here can you point Interpreter to OS version of Python,that i guess you have installed PyQt5 to.
Quick demo of
venv
.# Make E:\div_code λ python -m venv pyqt5_env # Cd in E:\div_code λ cd pyqt5_env\ # Activate E:\div_code\pyqt5_env λ E:\div_code\pyqt5_env\Scripts\activate # Install (pyqt5_env) E:\div_code\pyqt5_env λ pip install PyQt5 Collecting PyQt5 Downloading .... Successfully installed PyQt5-5.14.1 PyQt5-sip-12.7.1 # Test that it wok (pyqt5_env) E:\div_code\pyqt5_env λ python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt5.QtWidgets import QApplication, QWidget >>> >>> exit()So if i was using PyCharm(which i am not) could point interpreter to
E:\div_code\pyqt5_env\Scripts\python.exe
Then it will work PyCharm for this environment,and eg not for OS python if not also have installed PyQt5 there.