install.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Installation
  2. ============
  3. Prerequisite
  4. ------------
  5. - Python >= 2.6
  6. - `Pip`_ >= 8
  7. Install
  8. -------
  9. To install package run following::
  10. pip install -r requirements.txt .
  11. To install package in non-default location run following::
  12. pip install -r requirements.txt --prefix=/path/to/install/location .
  13. If you install in non-default location then export `PYTHONPATH` variable before using PTL as follow::
  14. export PYTHONPATH=</path/to/install/location>/lib/python<python version>/site-packages
  15. ::
  16. </path/to/install/location/bin>/pbs_benchpress -h
  17. Upgrade
  18. -------
  19. To upgrade package run following::
  20. pip install -U -r requirements.txt .
  21. Uninstall
  22. ---------
  23. To uninstall package run following::
  24. pip uninstall PbsTestLab
  25. If you have installed in non-default location then export `PYTHONPATH` first before running uninstall command like::
  26. export PYTHONPATH=</path/to/install/location>/lib/python<python version>/site-packages
  27. pip uninstall PbsTestLab
  28. .. _Pip: https://pip.pypa.io/en/stable