Skip to content

Instantly share code, notes, and snippets.

@mjzffr
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjzffr/ac735cd58a33ebb86bc5 to your computer and use it in GitHub Desktop.
Save mjzffr/ac735cd58a33ebb86bc5 to your computer and use it in GitHub Desktop.
Resources for setting up Python

Is Python installed? Which version?

Run python from a shell to find out.

If you're using Linux, you might be able to install everything you need directly from your distribution's package repository. The versions you want might not be available, though.

Install Python

  • https://www.python.org/download/
  • The above page probably has links to specific info about Mac, Windows, etc. (Last I checked, middle of page under "Information about specific ports, and developer info")

Install some essential tools

You will be able to easily install new python packages with pip and you will be able to make virtual environments for your different python projects so that their package requirements don't clash or make your default python installation messy. Think of a virtual environment as an independent copy of python for a particular project.

Install pip for package management

  • http://pip.readthedocs.org/en/latest/installing.html
  • If you have multiple versions of Python installed, make sure to run get-pip.py with the python executable of the version you want pip to work with! (e.g. python get-pip.py versus python3 get-pip.y) ** You might decide to install a copy of pip for each python version you have. In that case, whenever you run pip, be aware which pip that command refers to.

Install virtualenv for environment management

(Skip if Python 3.3+) As of Python 3.3, virtual environments are taken care of by a Python module rather than an external package (https://docs.python.org/3/library/venv.html).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment