-
Notifications
You must be signed in to change notification settings - Fork 946
Installation
The installation of the objection python component should be relatively simple. In fact, a simple pip3 install objection will suffice.
Before continuing with the installation though, make sure you have the following prerequisites met:
-
pythonversion 3.3+. Check your version with:python -V, upgrade/install using your distributions package manager. -
pip3version 9.0+. Check your version with:pip --version, upgrade with:pip install pip --upgrade. - (optionally)
virtualenvversion 15+. Check your version with:virtualenv --version, upgrade/install with:pip install virtualenv --upgrade.
By 'native', we are referring to a non-virtualenv installation, where all of the objection dependencies will be installed in your operating systems python module path. There is nothing wrong with this really, but some may prefer to have isolated environments for certain programs. If this is you, check out the next section.
-
Make sure your system meets the prerequisites detailed in the previous section.
-
Next, start the installation using
pip3with:
pip3 install -U objection
- Once the dependencies are installed, the
objectioncommand should be available in yourPATH. In some shells, it may be necessary to runhash -rbefore the command will be available.
By 'virtual', we are referring to the fact that objection will be installed in an isolated python virtual environment. For many, this is the preferred option as objection dependencies will have no effect on any locally installed dependencies within the operating systems module path.
-
Make sure your system meets the prerequisites detailed in the previous section, including the
virtualenvcommand. -
Create a new virtual environment with:
virtualenv --python=python3 ~/virtual-python3
- Activate your new python virtual environment with:
source ~/virtual-python3
- Next, start the installation using
pip3with:
pip3 install -U objection
- Once the dependencies are installed, the
objectioncommand should be available in yourPATH. In some shells, it may be necessary to runhash -rbefore the command will be available.
The most common error you are likely to face is one that might look as follows:
`` ~ # pip3 install objection Collecting objection Could not find a version that satisfies the requirement objection (from versions: ) No matching distribution found for objection
This means that you are trying to install `objection` using Python 2 and not Python 3. Either change your interpreter to Python 3, try and install using `pip3` and not `pip` or activate a new [virtual environment](#virtual-installation).