Skip to content
heynemann edited this page Sep 13, 2010 · 3 revisions

Home | Installing | Expression Trees | Pynq Factory

Installing Pynq is really easy, just follow the installation instructions for your platform.

Debian / Ubuntu users

We have a .deb repository that you can add to your sources list.

Just add these two lines in the /etc/apt/sources.list file:

deb http://deb.gabrielfalcao.com/unstable/ ./
deb-src http://deb.gabrielfalcao.com/unstable/ ./

After adding those, execute the following commands in a terminal window:

sudo aptitude update
sudo aptitude install python-pynq

If aptitude asks if you confirm installing a package that’s not trusted it’s because we haven’t yet submitted the package for debian approval (we will though when the project is a little more mature).

It should be installed by now, but just to make sure, run ipython and type:

import pynq

If you don’t get any error messages it’s installed properly.

Windows / Linux / Mac OS users

When installing from source, you have two options: stable or head.

If you want stable release versions, go to http://pypi.python.org/pypi/Pynq/ and you can find the latest stable release. The same files can be found in http://github.com/heynemann/pynq/downloads. This is so we keep mirrors of Pynq code in case one of them is down.

If you’d rather get the current HEAD revision from git, just click on Source above and select the Public Clone Url. Using git to download the code is beyond the scope of this page.

After getting the .tar.gz version of the release you want (or the source code for it) you can:

  • Create a symbolic link for it in Linux, under python site-packages folder
  • Add it to the PYTHONPATH environment variable in Windows/Mac OS

It should be installed by now, but just to make sure, run ipython and type:

import pynq

If you don’t get any error messages it’s installed properly.

Easy Install

You can also use setuptools easy_install to install pynq, even though it is discouraged to do so under Debian/Ubuntu (check the first install method).

To install it using easy_install do:

sudo easy_install pynq

This assumes you have easy_install installed (for more info about easy_install check http://peak.telecommunity.com/DevCenter/EasyInstall).

It should be installed by now, but just to make sure, run ipython and type:

import pynq

If you don’t get any error messages it’s installed properly.

Clone this wiki locally