<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;[[Home]] | [[Installing]] | [[Expression Trees]] | [[Pynq Factory]]&lt;/p&gt;
&lt;p&gt;Installing Pynq is really easy, just follow the installation instructions for your platform.&lt;/p&gt;
&lt;h2&gt;Debian / Ubuntu users&lt;/h2&gt;
&lt;p&gt;We have a .deb repository that you can add to your sources list.&lt;/p&gt;
&lt;p&gt;Just add these two lines in the /etc/apt/sources.list file:&lt;/p&gt;
&lt;pre&gt;
deb http://deb.gabrielfalcao.com/unstable/ ./
deb-src http://deb.gabrielfalcao.com/unstable/ ./
&lt;/pre&gt;
&lt;p&gt;After adding those, execute the following commands in a terminal window:&lt;/p&gt;
&lt;pre&gt;
sudo aptitude update
sudo aptitude install python-pynq
&lt;/pre&gt;
&lt;p&gt;If aptitude asks if you confirm installing a package that&amp;#8217;s not trusted it&amp;#8217;s because we haven&amp;#8217;t yet submitted the package for debian approval (we will though when the project is a little more mature).&lt;/p&gt;
&lt;p&gt;It should be installed by now, but just to make sure, run ipython and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import pynq&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you don&amp;#8217;t get any error messages it&amp;#8217;s installed properly.&lt;/p&gt;
&lt;h2&gt;Windows / Linux / Mac OS users&lt;/h2&gt;
&lt;p&gt;When installing from source, you have two options: stable or head.&lt;/p&gt;
&lt;p&gt;If you want stable release versions, go to &lt;a href=&quot;http://pypi.python.org/pypi/Pynq/&quot;&gt;http://pypi.python.org/pypi/Pynq/&lt;/a&gt; and you can find the latest stable release. The same files can be found in &lt;a href=&quot;http://github.com/heynemann/pynq/downloads&quot;&gt;http://github.com/heynemann/pynq/downloads&lt;/a&gt;. This is so we keep mirrors of Pynq code in case one of them is down.&lt;/p&gt;
&lt;p&gt;If you&amp;#8217;d rather get the current &lt;span class=&quot;caps&quot;&gt;HEAD&lt;/span&gt; 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.&lt;/p&gt;
&lt;p&gt;After getting the .tar.gz version of the release you want (or the source code for it) you can:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Create a symbolic link for it in Linux, under python site-packages folder&lt;/li&gt;
	&lt;li&gt;Add it to the &lt;span class=&quot;caps&quot;&gt;PYTHONPATH&lt;/span&gt; environment variable in Windows/Mac OS&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It should be installed by now, but just to make sure, run ipython and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import pynq&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you don&amp;#8217;t get any error messages it&amp;#8217;s installed properly.&lt;/p&gt;
&lt;h2&gt;Easy Install&lt;/h2&gt;
&lt;p&gt;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).&lt;/p&gt;
&lt;p&gt;To install it using easy_install do:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo easy_install pynq&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This assumes you have easy_install installed (for more info about easy_install check &lt;a href=&quot;http://peak.telecommunity.com/DevCenter/EasyInstall&quot;&gt;http://peak.telecommunity.com/DevCenter/EasyInstall&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;It should be installed by now, but just to make sure, run ipython and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import pynq&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you don&amp;#8217;t get any error messages it&amp;#8217;s installed properly.&lt;/p&gt;</body>
  <created-at type="datetime">2010-02-09T19:15:00-08:00</created-at>
  <id type="integer">202571</id>
  <permalink>installing</permalink>
  <repository-id type="integer">184160</repository-id>
  <title>Installing</title>
  <updated-at type="datetime">2009-05-14T12:48:26-07:00</updated-at>
  <user-id type="integer">60965</user-id>
</wiki>
