The documentation says you should install using either:
conda install -c conda-forge glmnet
or
pip install glmnet
EDIT:
It seems there are multiple "glmnet" packages for python that go by different names. Here is another: https://github.com/conda-forge/r-glmnet-feedstock
To install that one you just do:
conda install -c conda-forge r-glmnet
Either way, the key is to specify which channel you want to install from using the -c
flag followed by the channel name (conda-forge
), and then the correct name for the package you want
Alternatively, instead of specifying the channel name every time you want to install something, you can add conda-forge
to your config with:
conda config --add channels conda-forge
Then you no longer need to use -c
and can just install packages with:
conda install r-glmnet
or conda install glmnet