Fetching contributors…
Cannot retrieve contributors at this time
executable file 72 lines (48 sloc) 3.39 KB

Installation instructions for Python, pip, brew, git, virtualenv, and virtualenvwrapper

Python 2.7 or 3.*

If you're a MAC user, Python should already come preinstalled on your machine. You can use both Python 2.7 or Python 3.6+ with SeleniumBase. If you're on a MAC and have Homebrew installed, you can use: brew install python3 to install Python 3. Or you can just get everything from

For MAC, there's also the official instructions here: Installing Python 2 on Mac OS X and Installing Python 3 on Mac OS X.

If you're a WINDOWS user, download Python 2.7 from here OR download Python 3.6.6 from here.


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

On MAC / 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 Mac/Linux. (On Windows, it's the System Variables Path within System Environment Variables. Ex: Add "C:/Python27/Scripts/" to the end of the Path variable.)

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

curl | 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.)


The Homebrew package manager allows you to install things more easily on MacOS, such as Git and Chromedriver.

Here's the command line script to install Homebrew (from

/usr/bin/ruby -e "$(curl -fsSL"

If you haven't updated Homebrew in awhile, you probably should. Here's how:

brew update


You can download Git from here.

MAC-ONLY shortcut: (This step only works if you installed Homebrew in the previous step)

brew install git

(You can also download the SeleniumBase repository right from GitHub and skip all the git-related commands.)

VirtualEnv and VirtualEnvWrapper

Virtual environments allow each your Python projects to have a unique set of packaged dependencies.

To learn how to create a Python virtual environment, see this ReadMe.