Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Unable to install for python in Windows using pip or conda #83

Open
noman-jamraiz-abbasi opened this issue Feb 22, 2024 · 0 comments
Open

Comments

@noman-jamraiz-abbasi
Copy link

noman-jamraiz-abbasi commented Feb 22, 2024

Hi,
So I have this project where I am forced to use 'glmnet', however for the last 10 hours I have tried almost everything possible to install it but it is giving some sort of lame 'numpy' dependency error even though I am having latest version of numpy installed. From the original documentation at https://pypi.org/project/glmnet/ I have found out that it need fortran compiler, I have installed that too and ensured its working. But to no use. I have pasteed the error code below for better understanding. Any help regarding this will be greatly appreciated as I can not find any latest post on this that works for the current version of python and pip. Also if I need to downgrade something and than I can install it, please let me know. I have tried this too vaguely but has not worked.
Thanks in advance.

ERROR:
C:\Users\PMLS>pip install glmnet
Collecting glmnet
Using cached glmnet-2.2.1.tar.gz (90 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
install requires: 'numpy'. use pip or easy_install.
$ pip install numpy
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant