Installing in a Virtualenv

Virtualenv is a way of separating different python programs installed on the same system from each other. If you have a complex python environment on your system it’s recommended that you install yotta inside a virtualenv.

Ensure you have virtualenv itself installed. It can be installed with:

pip install virtualenv

Check that your installation is succesful by running virtualenv --version.

Create a directory to use for the yotta virtualenv:

mkdir yotta-venv
virtualenv ./yotta-venv

activate the new virtualenv:

source ./yotta-venv/bin/activate

install yotta in the virtualenv:

pip install yotta

(optional) add the binary directory of your virtualenv to your PATH: (if you omit this step, you will need to run yotta as../path/to/yotta-venv/bin/yotta instead of simply yotta.

export PATH="/path/to/yotta-venv/bin:$PATH"

Now yotta should work as normal. You will need to activate the virtualenv any time you want to run yotta commands (you can deactivate it afterwards, by simply running deactivate).