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 PyCharm (Community Edition).
To test your environment, download and unzip the dummy project under
~/workspace
, launch PyCharm and open~/workspace/dummy_project
, and run the following command on the PyCharm terminal:$ python3 helloworld.py
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
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 and install PyCharm (Community Edition).
To test your environment, download and unzip the dummy project under
~/workspace
, launch PyCharm and open~/workspace/dummy_project
, and run the following command on the PyCharm terminal:$ python3 helloworld.py
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 PyCharm (Community Edition).
To test your environment, download and unzip the dummy project under
~/workspace
, launch PyCharm and open~/workspace/dummy_project
, and run the following command on the PyCharm terminal:$ python.exe helloworld.py