Installation¶
Python version¶
Recommended Python version is 3.9 and above.
Dependencies¶
PyGindex depends on the following packages, that will be automatically installed:
Requests is used to interact with IG Index API services over HTTPS
Virtual environment¶
Recommended way of installing PyGIndex is to use Python virtual environment.
Python comes with venv module, which makes it
easy to start using virtual environments.
Create new environment¶
In your project directory initialise new environment:
$ mkdir new_project
$ cd new_project
$ python3 -m venv .venv
Activate the environment¶
You need to activate the newly created environment before you install PyGIndex and its dependencies:
$ cd new_project
$ source .venv/bin/activate
Note
Once you’re done with your work on the project code and want to switch to another environment, you need to de-activate it first:
$ deactivate
Install PyGIndex¶
In the active environment run the following command to install PyGIndex:
$ pip install pygindex -U