Skip to content

2. Installing codonPython

NatashaChetwynd edited this page Nov 29, 2019 · 3 revisions

Installation

To be able to use the functions within the codonPython package, you must install the package onto your machine. These instructions explain how to do this in the most basic form. Functions can most likely be used in more complex ways than in the example given below but this guide should help you get started.

Requirements

  • Git installed on machine.
  • Python installed on machine.
  • Pip installed on machine.

This software may be directly installed onto your machine or be available via an alternative platform e.g. anaconda.

-For NHS Digital staff this may need downloading via ZENworks, a resolveIT or on a virtual machine.

  1. Open a command prompt and enter the following:

python -m pip install --user git+https://github.com/codonlibrary/codonPython.git

It should start to load and look something like this [click image to enlarge] : Install

  1. Import whichever function you wish to use.

Example:

Here is an example of importing and using the suppress_value function: example-use

Common Errors

If you see an error like this, you may not have python installed correctly.

Python-error

If you see an error like this you may not have git installed correctly. Try following the instructions here to set your PATH correctly.

Git-error

If you see an error like this, you may not have pip installed correctly. pip-error

*Images may be blurred to hide identifiable information

If you have any issues please email [email protected].