1.1. Install Python¶
If installing on Windows, make sure you check the option to add Python to the PATH. This will ensure that not only the python and pip binaries are on the path, but that the axonshell CLI script that comes with this package will be available on the PATH after you install it.
axonius-api-client is listed on pypi, so you can do pip install from any platform that has python installed.
$ pip install axonius_api_client
If you need to install axonius-api-client to a system that doesn’t have access to the internet, there are a few hoops to jump through.
You will need to install the exact same version of python on both systems.
If the destination system is linux, the source system should be the exact same linux distribution, version, and build.
On Windows, each system should have should the PATH variable updated to include the Python directories:
On the source system that does have internet access, use the following command to download all of the requirements as wheel packages:
$ pip download -d d:\axonshell_pkg axonius-api-client
Copy the contents of d:axonshell_pkg to the destination server, and then on the destination server run:
$ pip install --no-index --find-links d:\axonshell_pkg --target d:\axonshell axonius-api-client
pipenv makes it easy to create virtual environments for python projects.
$ pipenv install axonius_api_client
This is really only for those who wish to contribute to this project, although
you can install the package after cloning the repository using
python setup.py install.
$ git clone git://github.com/Axonius/axonius_api_client.git