QSToolKit Installation Guide Ubuntu

From Quantwiki
Jump to: navigation, search

System Requirements

Make sure your system meets these requirements:

  • Operating system: QSTK requires Ubuntu 11 or later (12.04 preferred)
  • RAM: 2GB.
  • Disk space: 2GB

Install QSTK

Once you have Ubuntu Installed, start Ubuntu and follow these commands to get Ubuntu working.

Step 1: Open the terminal using Ctrl + Alt + T, and make sure you're in your home directory using the following command.

cd
Step 2: Download QSTK using the command.
wget http://pypi.python.org/packages/source/Q/QSTK/QSTK-0.2.8.tar.gz
Step 3: Extract the tarball using the command.
tar -xzvf QSTK-0.2.8.tar.gz
Step 4: Move to the QSTK directory created now.
cd QSTK-0.2.8
Step 5: Install the dependencies for QSTK. You'll be prompted for your password once you run this command. It'll run for around 10-15 mins and prompt you for Y (yes) a few times.
sudo sh UbuntuInstallation.sh
Step 6: Install QSTK once you have all the dependencies using the command.
sudo python setup.py install

Step 7: Testing the Installation was correct, please run the following commands. Please read the complete output to check if everything looks okay, specially version numbers.

cd Examples
python Validation.py

Testing QSTK

There are several example programs in the QSTK/Examples/Basic directory. We suggest you start with taking a look at the data access example in Examples/Basic/tutorial1.py. This example will create pdfs in your basic directory. Take a look at the code there to see how it works.

Now take QSTK for a test drive. Take a look at QSTK Tutorial 1