So this project is glmnet_python which pip-installs into a directory by the same name. But then there's also the python-glmnet project which pip-installs into a glmnet directory.
Installing the latter causes my glmnet_python runs to crash with an error about not being able to import with from glmnet import glmnet which is in cvglmnet.py. In other words, glmnet is now an installed package and the from glmnet import glmnet looks into it for glmnet but it isn't there.
My solution was to go into cvglmnet.py and put a dot in front of glmnet so that the import now reads from .glmnet import glmnet. That works.
So this project is
glmnet_python
which pip-installs into a directory by the same name. But then there's also thepython-glmnet
project which pip-installs into aglmnet
directory.Installing the latter causes my
glmnet_python
runs to crash with an error about not being able to import withfrom glmnet import glmnet
which is incvglmnet.py
. In other words,glmnet
is now an installed package and thefrom glmnet import glmnet
looks into it forglmnet
but it isn't there.My solution was to go into
cvglmnet.py
and put a dot in front ofglmnet
so that the import now readsfrom .glmnet import glmnet
. That works.