brightway-lca / brightway2

Metapackage for brightway2 imports and documentation
https://brightway.dev/
BSD 3-Clause "New" or "Revised" License
100 stars 37 forks source link

I cannot install brightway 2 with anaconda #75

Open PGjedde opened 6 months ago

PGjedde commented 6 months ago

Trying to install brightway2 in 2 different ways, and none work:

As I should according to anaconda:

C:\Users\username>conda install cmutel::brightway2

Channels:

  • defaults
  • cmutel Platform: win-64 Collecting package metadata (repodata.json): done Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • cmutel::brightway2

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

According to the official documentation:

C:\Users\username>conda create -n bw brightway2 jupyterlab

Channels:

  • defaults Platform: win-64 Collecting package metadata (repodata.json): done Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • brightway2

Current channels:

  • defaults

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

moritzos commented 5 months ago

Hello @PGjedde,

could you fix the issue described in your comment? I have the same problem and would be interested in a solution.

PGjedde commented 5 months ago

Hi @moritzos, Yes I suggest using pip for installation as this is "constant" and allows you to install the last legacy version of Brightway 2 (note: not 2.5).

To install in a new conda environment:

conda create -n bw20 -c conda-forge pip
conda activate bw20
pip install brightway2==2.4.5

And if you use JupyterLab you can create the first conda environment with following:

conda create -n bw20 -c conda-forge pip ipykernel jupyterlab

Let me know if it also works for you.

moritzos commented 4 months ago

Hi @PGjedde,

thanks a lot for your quick reply. I tried it again with Anaconda following this tutorial and it seems to work: https://www.youtube.com/watch?v=pEvi7Ct58-0

Nevertheless, thanks again for your support!