-
Notifications
You must be signed in to change notification settings - Fork 11
Install & Run
This section describes a step-by-step installation of a release version for those intended to use ElectricityLCI.
- Python 3.6.5 or greater - https://www.python.org/downloads/ a. When installing, make sure that pip gets chosen as an additional feature.
- The latest version of Pip. Included with Python installation.
Install a release directly from github using pip. From a command line interface, run:
pip install git+https://github.com/USEPA/[email protected]#egg=electricitylci
where you can replace 'v1.0' with the version you wish to use under Releases.
You can test the installation by opening up a Python console and entering
import electricitylci
If no error code is returned, the libraries are installed. See any example file in the examples folder for an example of the use of the module.
The user can uninstall the python module from a command line interface with:
pip uninstall electricitylci
Once installed the user can run from the terminal (e.g. Windows command prompt):
>python -m electricitylci.main
to generate a zip file containing an openLCA-schema json-ld. Upon executing the user will be asked
to select a choice of models to build in the console. Upon selection of the model, the build process will commence and the the user will be provided a series of informational messages with updated on the model building process. Once complete, the a zip archive (.zip) will be created
in that configuration file. This file can then be imported into openLCA software.