Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Install (on Python2)

Colin Webb edited this page Oct 29, 2020 · 3 revisions

This is outdated. Please use the Python3 installation instructions.

1.8.3 is the last version of servicemanager that will run on Python2.

Python

Make sure you are running Python version (v) 2.7.13 < v < 3.

For installing versions of Python, we recommend using pyenv.

Pip

Install pip and then (if you have both Python2 and Python3 installed) be sure to use the correct pip commands below by setting an alias for pip2 to pip

virtualenv

To avoid conflicts with other python packages use a virtualenv

pip install virtualenv

Install Service Manager

cd ~
virtualenv -p `which python2` servicemanager
source servicemanager/bin/activate
pip install servicemanager==1.8.3

note: you may need to source the virtualenv in each new terminal session before using servicemanager. For example you can add this to your shell profile (e.g. .zprofile or .bash_profile)

source ~/servicemanager/bin/activate

Tab-completion

From 0.0.13, servicemanager can use argcomplete to provide tab completion in bash. In order to enable this, put the following in .bashrc or .profile in your home directory:

eval "$(register-python-argcomplete sm)"