Launch a terminal and run the following commands:
Change to your home folder.
$ cd $HOME
Install
python3-pip
andpython3-tk
.$ sudo apt-get install python3-pip python3-tk
Install
numpy
andpygame
.$ pip3 install numpy pygame
Create
lib
andworkspace
folders.$ mkdir lib workspace
Download
stdlib-python.zip
.$ wget https://www.cs.umb.edu/~siyer/teaching/stdlib-python.zip
Unzip
stdlib-python.zip
under ~/lib.$ unzip stdlib-python.zip -d lib
Remove
stdlib-python.zip
.$ rm stdlib-python.zip
Set the environment variable
PYTHONPATH
.$ echo "export PYTHONPATH=.:$HOME/lib/stdlib-python" >> $HOME/.bashrc
Download and install Visual Studio Code (aka VSCode).
Launch VSCode, click on the Extensions icon on the left sidebar, search for the Python extension, and install it.
To test your environment, download and unzip
ipp.zip
under~/workspace
, launch VSCode, open the folder~/workspace/ipp
, and run the following commands in the VSCode terminal (can be launched by selecting Terminal → New Terminal):$ python3 helloworld.py
$ python3 bouncingball.py
$ python3 playthattune.py < data/looney.txt
Launch a terminal and run the following commands:
Change to your home folder.
$ cd $HOME
Install
brew
.$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install
python-tk
andwget
.$ brew install python-tk wget
Install
numpy
andpygame
.$ pip3 install numpy pygame --break-system-packages
Create
lib
andworkspace
folders.$ mkdir lib workspace
Download
stdlib-python.zip
.$ wget https://www.cs.umb.edu/~siyer/teaching/stdlib-python.zip
Unzip
stdlib-python.zip
under ~/lib.$ unzip stdlib-python.zip -d lib
Remove
stdlib-python.zip
.$ rm stdlib-python.zip
Set the environment variable
PYTHONPATH
.$ echo "export PYTHONPATH=.:$HOME/lib/stdlib-python" >> $HOME/.zshenv
Download Visual Studio Code (aka VSCode), unzip the file, and move the extracted application into the Applications folder.
Launch VSCode, click on the Extensions icon on the left sidebar, search for the Python extension, and install it.
To test your environment, download and unzip
ipp.zip
under~/workspace
, launch VSCode, open the folder~/workspace/ipp
, and run the following commands in the VSCode terminal (can be launched by selecting Terminal → New Terminal):
$ python3 helloworld.py
$ python3 bouncingball.py
$ python3 playthattune.py < data/looney.txt
Install Python 3, making sure you have checked the box that says Add Python 3.x to PATH.
Launch a powershell terminal and run the following commands:
Change to your home folder.
$ cd $HOME
Install
numpy
andpygame
.$ pip3 install numpy pygame
Create
lib
andworkspace
folders.$ mkdir lib,workspace
Download
stdlib-python.zip
.$ wget -O stdlib-python.zip https://www.cs.umb.edu/~siyer/teaching/stdlib-python.zip
Unzip
stdlib-python.zip
under~/lib
.$ Expand-Archive -LiteralPath stdlib-python.zip -DestinationPath lib
Remove
stdlib-python.zip
.$ rm stdlib-python.zip
Set the environment variable
PYTHONPATH
.$ setx PYTHONPATH ".;$HOME\lib\stdlib-python"
Download and install Visual Studio Code (aka VSCode).
Launch VSCode, click on the Extensions icon on the left sidebar, search for the Python extension, and install it.
To test your environment, download and unzip
ipp.zip
under~/workspace
, launch VSCode, open the folder~/workspace/ipp
, and run the following commands in the VSCode terminal (can be launched by selecting Terminal → New Terminal):
$ python.exe helloworld.py
$ python.exe bouncingball.py
$ Get-Content data/looney.txt | python.exe playthattune.py