Skip to content

Python Setup

Installation

OSX

Python on OSX

Installation details are here.

Python3 requires gcc, which you can get by installing XCode or Command Line Tools.

Install python3 and pip3

1
brew install python3

EV3

Install python3 and pip3

1
2
sudo apt-get install python3
sudo apt-get install python3-pip

Package Management

Determine installed packages

1
pip list 

Determine outdated packages

1
pip list --outdated

Install a package

1
pip install pkg_name

Update a package

1
pip install --upgrade pkg_name

PyPy

Pip for pypy installation notes are here.

1
2
3
sudo apt-get install curl pypy pypy-dev
curl https://bootstrap.pypa.io/get-pip.py | sudo pypy
sudo pypy -m pip install package_name