Set Up Development Environment

This tutorial explains how to install the SDK in a new virtual environment, or an existing Python environment.

Install the Python SDK

Note

If you skipped creating a virtualenv, you may need to substitute python3 instead python for the commands in this guide.

The Luminary Cloud Python SDK is distributed as a Python wheel and can be downloaded here.

Navigate to the folder that you downloaded the wheel file to and install it with:

python -m pip install <downloaded whl file>
py -m pip install <downloaded whl file>

Using the virtualenv

Now you have a ready-to-use Python virtualenv with the Luminary Cloud SDK installed. A common workflow could be something like:

# activate the virtualenv
source my-venv/bin/activate

# run a python script that uses the SDK
python my_first_simulation.py

# deactivate the virtualenv when you're done
deactivate
# activate the virtualenv
my-venv\Scripts\activate

# run a python script that uses the SDK
py .\my_first_simulation.py

# deactivate the virtualenv when you're done
deactivate

Next Steps

For a tutorial on writing your first Python script to run a simulation, click the Next link below.