Launch a terminal and run the following commands:
Change to your home folder.
$ cd $HOMEInstall
python3-pipandpython3-tk.$ sudo apt-get install python3-pip python3-tkInstall
numpyandpygame.$ pip3 install numpy pygameCreate
libandworkspacefolders.$ mkdir lib workspaceDownload
stdlib-python.zip.$ wget https://www.cs.umb.edu/~siyer/teaching/stdlib-python.zipUnzip
stdlib-python.zipunder ~/lib.$ unzip stdlib-python.zip -d libRemove
stdlib-python.zip.$ rm stdlib-python.zipSet 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.zipunder~/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 $HOMEInstall
brew.$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install
python-tkandwget.$ brew install python-tk wgetInstall
numpyandpygame.$ pip3 install numpy pygame --break-system-packagesCreate
libandworkspacefolders.$ mkdir lib workspaceDownload
stdlib-python.zip.$ wget https://www.cs.umb.edu/~siyer/teaching/stdlib-python.zipUnzip
stdlib-python.zipunder ~/lib.$ unzip stdlib-python.zip -d libRemove
stdlib-python.zip.$ rm stdlib-python.zipSet 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.zipunder~/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 $HOMEInstall
numpyandpygame.$ pip3 install numpy pygameCreate
libandworkspacefolders.$ mkdir lib,workspaceDownload
stdlib-python.zip.$ wget -O stdlib-python.zip https://www.cs.umb.edu/~siyer/teaching/stdlib-python.zipUnzip
stdlib-python.zipunder~/lib.$ Expand-Archive -LiteralPath stdlib-python.zip -DestinationPath libRemove
stdlib-python.zip.$ rm stdlib-python.zipSet 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.zipunder~/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