Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot install brightway 2 with anaconda #75

Closed
PGjedde opened this issue Feb 13, 2024 · 3 comments
Closed

I cannot install brightway 2 with anaconda #75

PGjedde opened this issue Feb 13, 2024 · 3 comments

Comments

@PGjedde
Copy link

PGjedde commented Feb 13, 2024

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
Copy link

moritzos commented Apr 7, 2024

Hello @PGjedde,

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

@PGjedde
Copy link
Author

PGjedde commented Apr 8, 2024

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants