If it shows import error in qwt5, then enter below command sudo aptitudeinstall python-qwt5-qt4 PyQt4for python3 - sudo apt-get install python3-qt4 It is also GUI based designing for Raspberry Pi pyQt4 for python2 - sudo apt-get install python-qt4 Subprocess.call('echo '+data+'|festival -tts', shell=True) Python code to use espeak and festival import espeak There are two voice output that we can use in Raspberry PiĮspeak voice output: sudo apt-get install espeakįestival voice output: sudo apt-get install festival If it ask for Xlib library enter the below command Pyautogui for python 3 - sudo pip3 install pyautoguiįor GUI based application, ex: creating a graphical view like virtual keyboard using push-buttons, text box etc. Pyautogui for python 2 - sudo pip2 install pyautogui Visit pyautogui cheat sheet for more mouse and keyboard related functions. Pyautogui Library is for mouse and keyboard related function without accessing physically, we can able to access through python code using pyautogui library. Sudo apt-get install build-essential python-dev To interface DHT11 Sensor with Raspberry Pi sudo apt-get install git-core Message Queuing telemetry Transport library to use mqtt protocol based applications sudo pip install paho-mqtt To install OpenCV in Raspberry Pi for python2 in single command: sudo apt-get install libopencv-dev python-opencv To install OpenCV in Raspberry Pi for python3 in single command: sudo apt install libqtgui4 sudo apt install libqt4-test sudo pip3 install opencv-pythonįswebcam is needed to handle camera related applications sudo apt-get install fswebcam To install python3 in Raspberry Pi sudo apt-get install python3 The below commands are for updating every applications or package which already installed.
#Python 3 install library update#
PIP for python3 - sudo apt-get install python3-pip To Update packages: To install PIP: PIP for python2 - sudo apt-get install python-pip Normally pip is available in Raspbian, if there is no PIP in any other O version, open the terminal and type the following command in Terminal to install pip. If command is given by without “sudo” it shows “Permission denied” error
#Python 3 install library how to#
Now let’s see, how to give commands to install Application and libraries.Įvery command should be typed in the Terminal, In every below command sudo resembles that “ super user do”. If some package is not available in APT command, those Packages and libraries can be installed using PIP command (Python Package Index) For installing Package, the APT command can be used, the apt-get command is available in every Linux based OS.