Skip to content

Install Python, pip, git

Installation instructions for Git, Python, and Pip

Git

You can download Git from here.

(A Git GUI tool like SourceTree or GitHub Desktop can help you with Git commands.)

(You can also download SeleniumBase from GitHub without using git-related commands.)

Python

You can download Python from https://www.python.org/downloads/ if it's not already preinstalled on your machine.

Pip

You might already have pip and setuptools installed, but if you don't:

python -m easy_install -U pip
pip install -U setuptools

If that didn't work, here are some more commands you can try:

On macOS / Windows / Linux, run the following command:

python -m ensurepip --default-pip

If your existing version of pip is old, upgrade to the latest version:

python -m pip install --upgrade pip setuptools

On CentOS 7 and some versions of Linux, you may need to install pip with yum:

yum -y update
yum -y install python-pip

If you're having any trouble getting pip, you can GET PIP HERE.

When done, make sure the location of pip is on your path, which is $PATH for macOS/Linux. (On Windows, it's the System Variables Path within System Environment Variables.)

You can also get pip (or fix pip) by using:

curl https://bootstrap.pypa.io/get-pip.py | python
  • (If you get SSL errors while trying to install packages with pip, see this Stackoverflow post, which tells you to run the above command.)

Keep Pip and Setuptools up-to-date:

python -m pip install -U pip setuptools
  • (Depending on your user permissions, you may need to add --user to the command if you're not inside a Python virtual environment, or use "sudo" on a UNIX-based OS if you're getting errors during installation.)