Setting up the environment¶
This tutorial will walk you through installing the acitoolkit using the sources so that you will be able to edit the samples and even the acitoolkit source code if so desired.
Download¶
First, we must download the acitoolkit. This is best done using git, but can be done by downloading the package as a zip.
If you have git installed, clone the repository using the following command:
git clone https://github.com/datacenter/acitoolkit.git
If git is not installed, you can download the acitoolkit as a zip file instead.:
wget https://github.com/datacenter/acitoolkit/archive/master.zip
unzip master.zip
Install¶
Next, cd into the created directory
cd acitoolkit
and install the acitoolkit
python setup.py install
Note that when installing on Mac or Linux, you will likely need to run
this as administrator so preface the command with the sudo
keyword
as follows:
sudo python setup.py install
If you plan on modifying the actual toolkit files, you should install the developer environment that will link the package installation to your development directory. Do this instead of the install option above
sudo python setup.py develop
Common Installation Errors¶
Missing development packages
Some of the dependencies may require that the python development environment be installed.
This package is usually called python-dev
or python-develop
. This is usually the
case when you see an error message referring to a missing file such as Python.h: No such
file or directory
.
In Ubuntu, you would install this package by sudo apt-get install python-dev