SQLAlchemy Installation
This section includes the steps to install the Leanxcale SQLAlchemy driver, which is available in two flavours for installation as a wheel package using PIP or Easy Install to install the egg package. Download your preferred type for the Python SQLAlchemy driver from the Drivers page.
We recommend you work within a virtual environment to properly manage and avoid conflicts between the versions of the dependencies.
Two alternatives exist for managing the dependencies of managing yourself by downloading the required drivers from the Drivers page or you allowing PIP or Easy Install to manage the dependencies and install the driver using the LeanXcale public repository.
PIP Installation
Unmanaged Installation
If you decide to download the driver manually and install using pip3, then you must execute:
pip3 install pyLeanXcale-2.0.0-py3-none-any.whl
This command installs all necessary dependencies required for the driver.
Managed Installation
On the other hand, you can add the LeanXcale public repository to your PIP configuration so that it can take care of finding and installing the required dependencies. In your environment , create a pip.conf file with the following.
NOTE: You can know where to place this pip.conf file by running pip config list -v
[global]
index = https://pypi.python.org/pypi/
index-url=https://pypi.python.org/simple/
extra-index-url = https://nexus.leanxcale.com/repository/pypi-releases/simple/
Then, install the driver with:
pip3 install pyLeanxcale==2.0.0
Easy Install Installation
Unmanaged Installation
Similar to the unmanaged installation using PIP, the .egg LeanXcale Python driver can be downloaded manually and installed using Easy Install. For installing the driver using Easy Install, you must run:
easy_install pyLeanXcale-2.0.0-py3-none-any.whl
Managed Installation
If you use Easy Install to install the driver from the public repository, then you must create a setup.cfg file in your environment with the following:
[easy_install]
index-url = https://nexus.leanxcale.com/repository/pypi-releases/simple
Then, install by running:
easy_install pyLeanxcale==2.0.0