Installing Privex Python DB Wrappers

(Alternative) Manual install from Git

You may wish to use the alternative installation methods if:

  • You need a feature / fix from the Git repo which hasn’t yet released as a versioned PyPi package

  • You need to install privex-db on a system which has no network connection

  • You don’t trust / can’t access PyPi

  • For some reason you can’t use pip or pipenv

Option 1 - Use pip to install straight from Github

pip3 install git+https://github.com/Privex/python-db

Option 2 - Clone and install manually

# Clone the repository from Github
git clone https://github.com/Privex/python-db
cd python-db

# RECOMMENDED MANUAL INSTALL METHOD
# Use pip to install the source code
pip3 install .

# ALTERNATIVE MANUAL INSTALL METHOD
# If you don't have pip, or have issues with installing using it, then you can use setuptools instead.
python3 setup.py install