#Installing additional tools
##Introduction This section will provide explanations of how to install the various additional tools required for this series of tasks.
##PyQt4 Installing PyQt4 is pretty straight-forward. Please follow the appropriate instructions for your platform:
- Install PyQt4 on Mac OS X (Please use MacPorts method)
- Install PyQt4 on Windows
##Matplotlib Matplotlib is plotting library that will enable us to visualise graphs and charts.
###Install on Mac OS X Please ensure that you have installed Python and PyQt4 via the MacPorts method before attempting to install Matplotlib.
- Open the terminal application
- Type
sudo port py33-matplotlib
- you will be prompted for your password. - Matplotlib should be installed
###Install on Windows To install on Windows ensure that you know whether your Windows machine is 32-bit or 64-bit and then download the latest stable version of Matplotlib for Python 3.3 from the Matplotlib downloads page.
##Numpy Numpy provides a library that is necessary to run Matplotlib. If you have installed Matplotlib using the above method then you have already installed Numpy.
##Network X Network X is a library that enables us to quickly create and use graphs.
###Install on Mac OS X These instructions assume that you have used MacPorts for the above installations.
- Download the source for network x (currently networkx-1.7.zip)
- Unzip this
- Open the terminal application
- type
cd /Users/username/Downloads/networkx-1.7
- ensure that you change username to your user name
- this assumes that you downloaded and unzipped the file into the downloads folder
- type
python3.3 setup.py build
- type
sudo python3.3 setup.py install
- you will be prompted for your password - Network X should be installed
###Install on Windows These instructions assume that you have Python on your path.
- Download the source for network x (currently networkx-1.7.zip)
- Unzip this to your desktop
- Open the command prompt
- type
cd Desktop
- type
cd networkx-1.7
- type
python setup.py build
- type
python setup.py install
- Network X should be installed
##cx_Freeze cx_Freeze is a set of utilities designed to produce versions of your applications that can be distributed without the having to install Python first.
Please follow the instructions for your platform:
##Python Twitter Python twitter is a library that enables you to connect to the Twitter API via Python. In addition to installing the software you will also need a twitter developer account and have created an application from within your twitter developer account (see [Creating a twitter application]).
###Install on Mac OS X These instructions assume that you have used MacPorts for the above installations.
- Download the source python twitter as a zip file
- Unzip this
- Open the terminal application
- type
cd /Users/username/Downloads/twitter-master
- ensure that you change username to your user name
- this assumes that you downloaded and unzipped the file into the downloads folder
- type
python3.3 setup.py build
- type
sudo python3.3 setup.py install
- you will be prompted for your password - Python Twitter should be installed
###Install on Windows These instructions assume that you have Python on your path.
- Download the source python twitter as a zip file
- Unzip this to the desktop
- Open the command prompt
- type
cd Desktop
- type
cd twitter-master
- type
python setup.py build
- type
python setup.py install
- you will be prompted for your password - Python Twitter should be installed
##Creating a twitter application In order to use Twitter from within Python you must have created an application from with the Twitter developer portal.
- Make sure you are signed into the Twitter developer portal
- Select 'My applications' from the menu
- Click on the button that says 'Create new application'
- Fill in the form
- From your list of applications make a note of the consumer key, consumer secret and the application name