Skip to content

Latest commit

 

History

History
81 lines (47 loc) · 2.62 KB

File metadata and controls

81 lines (47 loc) · 2.62 KB

Unit 4 OSX installfest

We are going to be installing and configuring python3

Some people may already have python2 installed -- but it is fully deprecated now and we will be exclusively using python3 in class.

Python3 might also be present on some systems as well, in which case we want to update it.

You should always just use python3 in general now -- the breaking changes when python updated from version 2 to version 3 are kind of this whole thing, but tldr; the world is now switched switching over to version 3 and so should we!

We will also be using pip3, which is python's package manager, to install a couple tools and finally we will install a vscode extension to help use programing python in code.

Our goal is to have everyone run the command python3 --version in the console and have it say Python 3.9.x

Installing python3 and pip3

We will be using homebrew to install and manage python3.


Tell homebrew to install python with the following command:

brew install python

Afterwards, run the following command:

python3 --version

If this command returns a version lower than Python 3.9.x, tell homebrew to update python with this command:

brew upgrade python

Python uses pip3 as the package manager, similar to how node.js uses npm

Double check that pip3 has been installed on your system with the following command:

pip3 --version

If zshell tells you pip3 is a command not found, reach out to a dev to troubleshoot this bug. I am putting this stack overflow here in case it is helpful to debug this issue for anyone.

Additional Setup

Everyone needs to install the following things, regardless of thier operating system.

  1. install a couple global python packages with pip3
  2. install a vscode extension for python

Installing Global Packages

We are going to make sure we have virtualenv installed, which is how pip3 manages package versioning in python projects.

We also are going to install ipython, which is a tricked out version of the python shell.


check to make sure you have virtualenv installed with the following command:

virtualenv --version

if nothing is found, use pip3 install virtualenv ot install virtualenv

run the following command to install ipython, which is a tricked out python shell:

pip3 install ipython

Vscode python Extension

everyone should install this python vscode extension