<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://murray.cds.caltech.edu/index.php?action=history&amp;feed=atom&amp;title=Python-control%2FDownload</id>
	<title>Python-control/Download - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://murray.cds.caltech.edu/index.php?action=history&amp;feed=atom&amp;title=Python-control%2FDownload"/>
	<link rel="alternate" type="text/html" href="https://murray.cds.caltech.edu/index.php?title=Python-control/Download&amp;action=history"/>
	<updated>2026-04-21T20:18:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://murray.cds.caltech.edu/index.php?title=Python-control/Download&amp;diff=14503&amp;oldid=prev</id>
		<title>Murray: Created page with &quot;{{righttoc}} This page contains information for downloading and installing python-control.  This package is designed for use in the [http://ipython.scipy.org/moin/ IPython] en...&quot;</title>
		<link rel="alternate" type="text/html" href="https://murray.cds.caltech.edu/index.php?title=Python-control/Download&amp;diff=14503&amp;oldid=prev"/>
		<updated>2012-09-03T04:42:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{righttoc}} This page contains information for downloading and installing python-control.  This package is designed for use in the [http://ipython.scipy.org/moin/ IPython] en...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{righttoc}}&lt;br /&gt;
This page contains information for downloading and installing python-control.  This package is designed for use in the [http://ipython.scipy.org/moin/ IPython] environment, with [http://scipy.org SciPy] extensions for scientific computing plus the [http://matplotlib.sourceforge.net/ matplotlib] extensions (which enables MATLAB-like plotting).&lt;br /&gt;
&lt;br /&gt;
* [https://sourceforge.net/projects/python-control/files/ Source code] - download the latest version of the python control library here&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
=== Standard python libraries ===&lt;br /&gt;
In order to run control-python, you must first install some standard python packages:&lt;br /&gt;
# SciPy - Open source library of scientific tools: http://www.scipy.org&lt;br /&gt;
# Matplotlib - Plotting library for python: matplotlib.sourceforge.net&lt;br /&gt;
# ipython (optional) - interactive python shell: http://ipython.scipy.org&lt;br /&gt;
&lt;br /&gt;
If you have everything installed correctly, you should be able to run the following code&lt;br /&gt;
 from scipy import *&lt;br /&gt;
 from pylab import *    # Not needed if you use ipython -pylab&lt;br /&gt;
 a = zeros(1000)&lt;br /&gt;
 a[:100]=1&lt;br /&gt;
 b = fft(a)&lt;br /&gt;
 plot(abs(b))&lt;br /&gt;
 show()                 # Not needed if you use ipython -pylab&lt;br /&gt;
&lt;br /&gt;
=== SLICOT ===&lt;br /&gt;
Some of the underlying functions in python-control are carried out using the [http://www.slicot.org/ SLICOT] software library.  The python-control library uses the [http://github.com/avventi/Slycot slycot] python wrapper developed by Enrico Avventi at KTH.&lt;br /&gt;
* Slycot is only required for functions that make use of SLICOT routines (eg, linear quadratic regulators, Kalman filtering, &amp;lt;math&amp;gt;H_\infty&amp;lt;/math&amp;gt; control)&lt;br /&gt;
* The slycot library is currently under development and the API is not yet fixed.  Some errors may occur if the version of slycot and python-control are incompatible&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
&lt;br /&gt;
The python-control package can be downloaded from SourceForge:&lt;br /&gt;
* https://sourceforge.net/projects/python-control/files&lt;br /&gt;
The files are distributed as compressed tar files.  To unpack and installed, run the following from the command line&lt;br /&gt;
 tar xzf control-N.mx.tar.gz&lt;br /&gt;
 cd control-N.mx&lt;br /&gt;
 python setup.py install&lt;br /&gt;
where N-mx is the latest release (eg, 0.3c).&lt;br /&gt;
&lt;br /&gt;
To see if things are working, you can run the script [http://www.cds.caltech.edu/~murray/software/python-control/examples/secord-matlab.py secord-matlab.py] (using either python or ipython -pylab).  It should generate a step response, Bode plot and Nyquist plot for a simple second order linear system.&lt;br /&gt;
&lt;br /&gt;
== Installation notes ==&lt;br /&gt;
&lt;br /&gt;
=== slycot ===&lt;br /&gt;
* To compile for 64 bit architecture on OS X,  edit setup.py to include the lines&lt;br /&gt;
 extra_link_args=[&amp;#039;-arch x86_64&amp;#039;]&lt;br /&gt;
:and then run setup.py as&lt;br /&gt;
 python setup.py config_fc --arch=&amp;quot;-arch x86_64&amp;quot; build&lt;/div&gt;</summary>
		<author><name>Murray</name></author>
	</entry>
</feed>