Install Python

This week we will be:

Does your computer have python already?

On a mac:

Go into your terminal application and type:

which python

We've been using Python 3 this semester (and you should probably avoid Python 2 at this point, unless absolutely necessary).

To see which version you're computer is currently using, type in:

python --version

Switching your python version can be a bit difficult.

python versions

Because of all of these version issues, I like to use pyenv.

This process is fairly painless.

Installing with homewbrew:

One way to update is with homebrew:

brew install python

Then find out where it's installed:

ls -l /usr/local/bin/python*

Then change the link like this:

ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python

and then see if it's changed your version:

python --version

I think this is how it's done in Windows:

https://docs.python.org/3/using/windows.html

Installing music21 on a Mac:

Configuring music21 from python:

Configuring from the command line:

On Windows, it's discussed a bit here: https://web.mit.edu/music21/doc/installing/installWindows.html