This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Install (on Python2)
Colin Webb edited this page Oct 29, 2020
·
3 revisions
Make sure you are running Python version (v) 2.7.13 < v < 3.
For installing versions of Python, we recommend using pyenv.
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
To avoid conflicts with other python packages use a virtualenv
pip install virtualenv
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
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)"