Install PyQt5 On Any Operating System

Mahmoud Ahmed
Sep 1, 2018 · 3 min read

hi , in this simple tutorial i will show you a simple way for installing pyqt5 on your operating system

recently this is alot of issues you will face if you tried to install pyqt5 and one of the best ways for installing it using Anaconda

Anaconda is most popular python data science platoform which contains many python libraries , one of those libraries is pyqt5 and many other libraries you will use with pyqt5 like xlswriter (generating excel reports) , pyinstaller (packaging your app into exe) and many more ,

let’s install Anacoda:

1 : open this link Anaconda then download a version depending on your operating system

2 : then install it like any app on your os , if you are using windows it will be an exe file , if you are using mac it will be dmg file , and if you are linux it will be an installer file

3 : make sure to install anaconda in a seperated directory on your D drive not the one you install your os in

4 : after installing Anaconda open the installation directory for it then navigate to Anaconda3\bin , you will find the python interpreter there , now we need to connect this interpreter with pycharm

5 : open pycharm then open prefernces then search for interpreter then press on project interpreter now now you will see the available interpreters on your operating system , we need to add our anaconda interpreter here to start using it

6 : from the right side press on the settings icon (small settings icon) then then choose add local like this image

pycharm interpreter settings

7 : now navigate to anaconda3\bin\python.exe (the anaconda installation directory) and make sure if you installed anaconda version with python3.6 you will find the python interpreter like python3.6.exe

8 : after choosing the anaconda python interpreter , wait a minute till the libraries loading finished , then you will see alot of python libraries , one of them is PyQt5 , like this image

anaconda with pycharm for pyqt5

9 : now you have installed anaconda and connected it well with pycharm and you are ready to start using PyQt5 ^_^

10 : open your code then import PyQt5 and Happy Coding ^_^ ,

if you faced any problems i am here always to help

#mahmoud_ahmed


Mahmoud Ahmed

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade