Reputation: 125
I am trying to run the yml file but fail to solve the environment. The error is
ResolvePackageNotFound:
libgcc-ng
libstdcxx-ng
Then I tried conda installs
conda install -c anaconda libgcc-ng
conda install -c conda-forge libstdcxx-ng
but the following error occurs:
PackagesNotFoundError: The following packages are not available from current channels:
libgcc-ng
libstdcxx-ng
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
Edit: I tried (PackagesNotFoundError: The following packages are not available from current channels:)
conda config --append channels conda-forge
and then tried
conda install -c conda-forge <package>
as well as pip install. Still does not work as my goal is to download libgcc-ng and libstdcxx-ng packages
Upvotes: 3
Views: 9633
Reputation: 76850
As @Simba correctly points out those packages are for linux-* platforms only. If your goal is simply to have a C/C++ compiler (not specifically GCC), consider instead using
conda install -c conda-forge compilers
This will install a platform-appropriate compiler on each platform, and populates the environment variables CC
, CXX
and GFORTRAN
with paths to the respective compilers.
Upvotes: 3
Reputation: 27628
libgcc-ng
, libstdcxx-ng
do exist in conda-forge
. But they're for Linux only, not for macOS, Windows.
These two packages include libraries for gcc. For macOS, install gcc
with homebrew. They are contained by the gcc
package already.
brew install gcc
Upvotes: 5