Practical 1 Python Env Setup
Practical 1 Python Env Setup
ie
Practical 1
Your task today is to set up your Python Environment and Jupyter Lab for practicals and
assignments during the module.
Windows Steps:
5. If Python has not been installed, check your Environment Variables and add the
location of your Python installation to your PATH manually. Then restart your PC.
The location will look something like:
C:\Users\Username\AppData\Local\Programs\Python\Python39
6. You should also install Pip, Python’s package manager. It should come with the latest
Python download. Run either of the following commands in your terminal (cmd) to
check:
pip –version
pip help
7. If pip has not been installed, you can follow these instructions to get it:
a. https://phoenixnap.com/kb/install-pip-windows
8. Check to see IDLE has also been installed by searching “IDLE” in your start menu. You
can also take this chance to install an IDE like PyCharm or Atom if you prefer them.
MacOS Steps:
1. Open Terminal and run the command python
2. If the version you see is Python 2, run the command python3
3. If Python 3 isn’t installed, you can install homebrew and use that to install Python.
See here: https://www.freecodecamp.org/news/python-version-on-mac-update/
4. Homebrew will install pip, Python’s package manager, when it installs Python. Check
by running the command pip –version or you can also use pip help
5. If pip has not been installed, see the instructions here:
https://www.geeksforgeeks.org/how-to-install-pip-in-macos/
6. Check to see IDLE has been installed correctly by Homebrew by finding it in the
Launchpad and or typing idle in the terminal. You may need to type idle3
7. Install any IDE you like e.g PyCharm or Atom.
17th Jan 2022 [email protected]
Open JupyterLab
Run the command jupyter lab in the terminal to launch. Note, only Firefox, Chrome,
and Safari are officially supported browsers.
Write some hello world or other code in your .ipynb (Jupyter Notebook) to get comfortable.