Closed JWarmenhoven closed 6 years ago
I don't know about these issues, but a conda package for this would probably be a good idea.
Ignoring compiler warnings is not great practice, but also not crazy. Does the code actually compile? Does it ever throw an error, or do you just get warnings?
Indeed, I forgot to mention that the package does not compile. I updated my initial comment.
I will try installing with conda-forge: https://github.com/conda-forge/glmnet-feedstock
Ahhh cool. I did not know that existed!
I did not either until today. It installs in the correct conda environment...
$ conda list | grep glm
glmnet 2.0.0 np113_0 conda-forge
...but I cannot import the glmnet module.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-35-52c1c0e49750> in <module>()
----> 1 import glmnet as gln
ModuleNotFoundError: No module named 'glmnet'
I am getting this too. It looks like it is installing the libs to the python 2.7 site packages directory instead of 3.6 for me.
$ ls miniconda3/envs/civis/lib/python2.7/site-packages/
_glmnet.so glmnet/ glmnet-2.0.0.dist-info/
I made an issue upstream - https://github.com/conda-forge/glmnet-feedstock/issues/3.
Looking at the conda package, I cannot divine why...
Yep...same here. (ends up in python 2.7 site-packages ) Good catch!
Cool. I put in a fix to the conda package. Hopefully it gets merged soon.
The new conda forge package has merged. I am closing this. If you still have trouble, please feel free to open an issue here or on the conda forge feedstock!
I still have an issue importing glmnet. Conda is installing correctly into python 3.8 packages, but I can't understand why it isn't able to import... there is a glymnet.py file inside of the glmnet_python folder which was installed.
import glmnet_python File "/usr/local/Caskroom/miniconda/base/lib/python3.8/site-packages/glmnet_python/__init__.py", line 12, in <module> from .cvglmnet import cvglmnet File "/usr/local/Caskroom/miniconda/base/lib/python3.8/site-packages/glmnet_python/cvglmnet.py", line 203, in <module> from glmnet import glmnet ImportError: cannot import name 'glmnet' from 'glmnet' (/usr/local/Caskroom/miniconda/base/lib/python3.8/site-packages/glmnet/__init__.py)
@edoroth were you able to get a solution to this
I am running into a number of Fortran compilation issues on MacOS. I followed the installation instructions but when running
python setup.py install
I get the following warning: (repeated for many lines)After these, there are warnings about unused labels. At the end it returns an error.
About about one and a half year ago I succesfully installed python-glmnet. Cannot remember any problems at that time. I am installing in a conda environment. Required packages scipy, numpy, scikit-learn have been installed. Any ideas?