Installing libraries with PIP

Here is a quick example of how to install using PIP, we have chosen to install Pyglet, which is a animation and game library. Note not all things can be installed through PIP, some may need a wheel file.
import pip

inst = 'Pyglet'

pip.main(['install',inst])
Returns

Installing collected packages: Pyglet
...
...
...
Successfully installed Pyglet-1.2.4



Related Sections

Python - Learn the python from the basics up. This fast track example code course will get you creating powerful python programs in no time.
Tkinter - Learn the key features of the tkinter to allow you to create user interfaces for your python programs.


Related Pages

Pickle - The pickle library allows a program to save data in a binary file.
Python - List Comprehension - Create powerful list comprehension expressions.
Python - Generators - Learn about generator statements.
Python - Data types - The learn about the key datatypes in the python language.
Tkinter - Combo Box - This is a short example showing how to use combo boxes in a GUI.
Tkinter - Radio Buttons - A short example of how to create a GUI with radio buttons.
Tkinter - Canvas - Canvas allows for a range of shapes to be plotted, such as circles, squares, lines