Installation Process

It’s very simple to install PADE in your computer or embedded device, although an internet connection it’s necessary.

Installing PADE using PIP

To install PADE framework using pip, you should type this command in a Unix like terminal:

$ pip install pade

Ready! PADE has been installed!

Installing PADE using Github

If you want to take a look in the PADE source code, you will need to clone the official PADE GitHub repository, typing the following commands in the terminal:

$ git clone https://github.com/grei-ufc/pade
$ cd pade
$ python setup.py install

Ready! PADE is istalled now. You can make a test and try to execute a example in the examples folder from the PADE source code. Type this commands:

pade start_runtime --port 20000 agent_example_1.py

PADE in a Python Virtual Environment

When you work with Python modules is important to know how create and manipulate virtual environments for managing project dependencies in a more ordenated way. Here we will show how you could create a Python virtual environment, activate it and use the pip commandto install PADE framework. For a more specific view about Python virtual environments take a look at: Python Guide.

First, you will need the virtualenv installed in your PC. Install it typing:

$ pip install virtualenv

After installing virtualenv it’s time to create an virtual environment, using the following command:

$ cd my_project_folder
$ virtualenv venv

To activate the virtual environment, type:

$ source venv/bin/activate

Now, you can install PADE from pip or GitHub repository:

$ pip install pade

Note

You can use the excellent Python distribution for numeric and scientific computation Anaconda. See how to do this here: AnacondaInc.