Skip to content

Cannot install brightway2 with conda: PackagesNotFoundError #90

@nicolnt

Description

@nicolnt

I am trying to install Brightway2 (not 25) to test some things to do some work on the same version of Brightway as is currently used by Activity-Browser interface.

However, following the official instructions with conda does not seem to work. I don't know exactly what is going wrong.

Note that appart from this conda works

Versions

Ubuntu running on WSL on Windows 11.

DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"

Processor	13th Gen Intel(R) Core(TM) i7-13700H (2.40 GHz)
Installed RAM	32.0 GB (31.7 GB usable)

Edition	Windows 11 Pro
Version	24H2
Installed on	‎10/‎12/‎2024
OS build	26100.6584

conda 25.9.1

Attempts

Attempt: Following official Brightway2 legacy documentation

https://docs.brightway.dev/en/legacy/content/installation/installation.html#quickstart

conda create -n 20251106-brightway2 brightway2
Console output

conda create -n 20251106-brightway2 brightway2
Retrieving notices: done
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/noarch/repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https//conda.anaconda.org/conda-forge/noarch'

Attempt: specifying conda-forge

conda create -n 20251106-brightway2 -f conda-forge brightway2
Console output

conda create -n 20251106-brightway2 -f conda-forge brightway2
Retrieving notices: done
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - conda-forge

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch

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.

Attempt: Following conda forge instruction

https://anaconda.org/conda-forge/brightway2

conda create -n 20251106-brightway2
conda activate 20251106-brightway2
conda install conda-forge::brightway2
Console output

conda install conda-forge::brightway2                             
Collecting package metadata (current_repodata.json): done                                                                                                   
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.                                                         
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.                                    
Collecting package metadata (repodata.json): done                                                                                                           
Solving environment: / (20251106-brightway2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions