Installing in virtual environment#
virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions. virtualenv can help you install this client without needing system install permissions. It creates an environment that has its own installation directories without sharing libraries with other virtualenv environments or the system installation.
Mac/Linux#
To install virtualenv via pip run:
1$ pip3 install virtualenv
Create the virtualenv and activate it
1$ virtualenv -p python3 <my-env>
2$ source <my-env>/bin/activate
Install the Nutanix client into the virtualenv
1<my-env>/bin/pip install ntnx-security-py-client
Windows#
To install virtualenv via pip run:
1> pip install virtualenv
Create the virtualenv and activate it
1> virtualenv <my-env>
2> myenv\Scripts\activate
Install the Nutanix SDK into the virtualenv
1<your-env>\Scripts\pip.exe install ntnx-security-py-client
Then import the package:
1import ntnx_security_py_client