Giter Site home page Giter Site logo

Comments (12)

beckermr avatar beckermr commented on May 27, 2024 1

I made an issue upstream - conda-forge/glmnet-feedstock#3.

Looking at the conda package, I cannot divine why...

from python-glmnet.

beckermr avatar beckermr commented on May 27, 2024

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?

from python-glmnet.

JWarmenhoven avatar JWarmenhoven commented on May 27, 2024

Indeed, I forgot to mention that the package does not compile. I updated my initial comment.

from python-glmnet.

JWarmenhoven avatar JWarmenhoven commented on May 27, 2024

I will try installing with conda-forge:
https://github.com/conda-forge/glmnet-feedstock

from python-glmnet.

beckermr avatar beckermr commented on May 27, 2024

Ahhh cool. I did not know that existed!

from python-glmnet.

JWarmenhoven avatar JWarmenhoven commented on May 27, 2024

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'

from python-glmnet.

beckermr avatar beckermr commented on May 27, 2024

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/ 

from python-glmnet.

JWarmenhoven avatar JWarmenhoven commented on May 27, 2024

Yep...same here. (ends up in python 2.7 site-packages )
Good catch!

from python-glmnet.

beckermr avatar beckermr commented on May 27, 2024

Cool. I put in a fix to the conda package. Hopefully it gets merged soon.

from python-glmnet.

beckermr avatar beckermr commented on May 27, 2024

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!

from python-glmnet.

edoroth avatar edoroth commented on May 27, 2024

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)

from python-glmnet.

drealtoni avatar drealtoni commented on May 27, 2024

@edoroth were you able to get a solution to this

from python-glmnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.