brightway2 icon indicating copy to clipboard operation
brightway2 copied to clipboard

I cannot install brightway 2 with anaconda

Open PGjedde opened this issue 2 years ago • 3 comments

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:

  • defaults
  • https://conda.anaconda.org/cmutel

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.

PGjedde avatar Feb 13 '24 15:02 PGjedde

Hello @PGjedde,

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

moritzos avatar Apr 07 '24 16:04 moritzos

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.

PGjedde avatar Apr 08 '24 08:04 PGjedde

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!

moritzos avatar Apr 11 '24 15:04 moritzos