Installing 6.300 Software On GNU/Linux
Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.
Installing Python
From Package Manager
Most major GNU/Linux distributions will have Python 3.6 or newer available in
their repositories, and so it may be possible to install an appropriate Python
version from its package manager. Typically, this is the python3
package.
If so, it is fine to install from there.
On Debian Buster, you can also install IDLE from the idle3
package.
From Source
It is also possible to compile Python from source. Below is the sequence of commands necessary to compile Python 3.11 on Debian Bullseye:
$ sudo apt-get -y build-dep python3
$ sudo apt-get -y install build-essential libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev tk-dev uuid-dev libffi-dev
$ wget https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tar.xz
$ tar xvf Python-3.11.1.tar.xz
$ cd Python-3.11.1
$ ./configure --enable-optimizations
$ make
$ sudo make altinstall
These commands first install the software necessary to build Python, and then
compile and install it. You can test that it worked by running python3
from
a command prompt (note that it should report its version as 3.11.1).
Installing 6.300 Software
The following command should install the 6.300 software. You may need to add
sudo
, or to use pip
instead of pip3
:
$ pip3 install https://sigproc.mit.edu/_static/fall24/software/lib6300-0.0.6.tar.gz
Optional: Install PyAudio
You may also wish to install the pyaudio
package, which is required to play
WAV files interactively from lib6300
, though it is not necessary for opening
or saving WAV files. You can install this from your distribution's package
manager, or with:
$ pip3 install pyaudio