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
pip
already comes with Python! (It lets you install packages, such as seleniumbase
.)
⚠️ If something went wrong with your pip
installation, try this:
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.)