The WiNDC Environment
This document describes how to set up the proper Python environment for the WiNDC data system.
We assume that your package manager is Conda and that it is already installed on your machine. Please consult the Anaconda webpage for more details.
Setting up the WiNDC environment
-
Create the
windcenvironment by running the following command on the command line or terminal:Verify that the new environment was created properly with this command:conda create --name windc python=3.7
For more information on environment creation and management in Conda, see the official documentation.conda info --envs
-
Enter the new environment with the following command:
conda activate windc
-
Install the GAMS Python 3.7 API files manually in the
windcenvironment by following the instructions on the GAMS website. For example, if you are working on a Mac and your current version of GAMS is 31.1, you may use the following command:python /Applications/GAMS31.1/Resources/sysdir/apifiles/Python/api_37/setup.py install
-
Install the Python package
windc_datain thewindcenvironment:pip install windc_data
-
Verify that the GAMS and
windc_datapackages have been successfully installed in thewindcenvironment by entering:conda list
Your Python environment is now ready!
Back to WiNDC data system documentation.