-
Notifications
You must be signed in to change notification settings - Fork 58
BUG: ModuleNotFoundError: No module named '_glmnet' #67
Comments
Hello, thank you for filing this issue! Based on the stack trace shown, my guess is that the underlying glmnet fortran library wasn't compiled, which would explain why If an example is helpful for how an environment can be set up for dev work and running tests, here is the configuration for this repo's continuous integration; this example is for Linux. |
Gotcha. I try to follow the config guidelines. I let you know soon. |
I also encountered the same problem,whether the software installed on the Windows can directly provide copy import |
Got the same error on: import glmnet first after
and later with:
Workaround. With process monitor I determined the locations where import searched for the dll:
So essentially it searched for the glmnet fortran lib in these folders: %PYTHONHOME%\Lib\site-packages\
%PYTHONHOME%\
%PYTHONHOME%\Lib\site-packages\scipy\.libs\
%PYTHONHOME%\Lib\site-packages\numpy\.libs\
C:\Windows\System32\ Note that In my |
With this solution of @eduard93, I finally succeed in building the glmnet in window os. Maybe this is fundamentally unrelated to this thread, but I think there are people like me who are not familiar with the compiling process. so I will briefly summarize the installation for windows users. When you compile using fortran, the os architecture version of 32-bit or 64-bit is important. If you are 64-bit windows user, I recommend the following procedure.
When it installed completely, you should confirm that your terminal recognize
|
Hello,
I have forked the repo to work on a new feature. Based on the contributing documents, I started to see if I can run pytest on
tests
files, which I could not. Apparently,_glmnet
module is missing. I tried to load the modules, and I failed as well. I am wondering if you can help me. I get the following error.The text was updated successfully, but these errors were encountered: