-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9cbce9
commit 14a485b
Showing
2 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Installation | ||
|
||
`timex_lca` is a Python software package. It's available via [`pip`](https://pypi.org/project/pip/) or [`conda`](https://docs.conda.io/en/latest/) / [`mamba`](https://mamba.readthedocs.io/en/latest/). | ||
|
||
```{note} | ||
We currently recommend the installation via `conda` or `mamba`. That's what we're providing detailed instructions for below. | ||
``` | ||
|
||
## Installing `timex_lca` using `conda` or `mamba` | ||
|
||
```{admonition} Prerequisites | ||
:class: important | ||
1. A working installation of `conda` or `mamba`. If you are using `conda`, we recommend installing the [libmamba solver](https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community). | ||
2. Basic knowledge of [Conda environments](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) | ||
``` | ||
|
||
::::{tab-set} | ||
|
||
:::{tab-item} Linux, Windows, or MacOS (x64) | ||
|
||
1. Create a new Conda environment (in this example named `timex`): | ||
|
||
```console | ||
conda create -n timex -c conda-forge -c cmutel -c diepers brightway25 timex_lca | ||
``` | ||
|
||
2. Activate the environment: | ||
|
||
```console | ||
conda activate timex | ||
``` | ||
|
||
3. (Optional but recommended) You can also use conda to install useful libraries like `jupyterlab`: | ||
|
||
```console | ||
conda install -c conda-forge jupyterlab | ||
``` | ||
|
||
::: | ||
|
||
:::{tab-item} macOS (Apple Silicon/ARM) | ||
|
||
```{note} | ||
Brightway runs on the new Apple Silicon ARM architecture. However, the super-fast linear algebra software library `pypardiso` is not compatible with the ARM processor architecture. To avoid critical errors during instruction that would break core functionality, a different version of Brightway (`brightway_nosolver`) and a a different linear algebra software library (`scikit-umfpack`) must be installed. | ||
``` | ||
|
||
1. Create a new Conda environment (in this example named `brightway`): | ||
|
||
``` | ||
conda create -n timex -c conda-forge -c cmutel -c diepers brightway25_nosolver scikit-umfpack timex_lca | ||
``` | ||
|
||
2. Activate the environment: | ||
|
||
``` | ||
conda activate timex | ||
``` | ||
|
||
3. (Optional but recommended) You can also use conda to install useful libraries like `jupyterlab`: | ||
|
||
```console | ||
conda install -c conda-forge jupyterlab | ||
``` | ||
|
||
:::: | ||
|
||
## Updating `timex_lca` | ||
|
||
`timex_lca` is being actively developed, with frequent new releases. To update Brightway using `conda` or `mamba`, activate your environment, and run: | ||
|
||
``` bash | ||
conda update -c diepers timex_lca | ||
``` | ||
|
||
```{warning} | ||
Newer versions of `timex_lca` can introduce breaking changes. We recommend you create a new environment for each project, and only update `timex_lca` when you are ready to update your project. | ||
``` |
This file was deleted.
Oops, something went wrong.