1.3 Installation (Linux)

Please follow the instructions below to install AsPyLib on Linux systems.

The procedure has been tested with Ubuntu, some minor adaptations might be needed for other distributions.

Step1 : download

Unzip the archive and copy all files where you want in the computer (for example, MyDocuments or Desktop).

  • the subfolders starting with numbers (aspylib_v2.0.0/01_simple_scripts, etc) contain scripts and can be moved, changed or deleted as you like.
  • the subfolder aspylib_v2.0.0/aspylib contains the AsPyLib library and must not be moved or modified after installation.

Step2 : install the shared libraries

Copy all shared libraries (.so.1.0) from /aspylib_v2.0.0/aspylib/lib to your /usr/lib or /usr/local/lib.

Then make soft links to these files. Example:

sudo ln -sf libmedian.so.1.0 libmedian.so.1
sudo ln -sf libmedian.so.1.0 libmedian.so

and repeat the procedure for all other shared libraries.

After this type the following command:

sudo ldconfig

Step3 : tell Python where is the AsPyLib library

There are two possibilities to do it:

1. add the full path of folder aspylib_v2.0.0 (for instance /home/soft/aspylib_v2.0.0) to the PYTHONPATH environment variable. If AsPyLib has been copied to /home/soft, this is done by adding the following line to /etc/environment:


Then log off and log on again so that Linux is aware of the changes.

or, equivalently:

2. modify file aspylib.pth so that it contains the full path of folder aspylib_v2.0.0 and put it in your python dist-packages directory. Most likely the path will be /usr/lib/python2.7/dist-packages/.

Step4 : conclusion

AsPyLib is now installed on your system, congratulations !!