-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: can't install from pip on mingw's python #22023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You are using mingw12. The errors start here
Do we have known good versions of mingw? |
I mean, as I said there is a mingw package that installs without problem, but shouldn't pip also be able to install numpy, or maybe im just confused about virtualenvs |
Hi. I can reproduce this on two machines. I ran I'm also using @mattip, based on these lines, should this be reported to the numpy project or the mingw project or the msys2 project?
@mattip, you said "you are using mingw12". Is that a known problem? What does "mingw12" mean? I see these substrings in the posted gist. Does one of them mean "mingw12"?
I'd be happy to gather more information if someone tells me how or try things if someone makes suggestions, but at the moment, I don't know what to do next. Thanks, cheers, |
@Kreijstal, I was just able to |
I don't remember how I got to the conclusion that the original report was about mingw12. I think I searched for that error message and found some other people who ran into it, leading me to think that there is something wrong with the compiler stack in that version. |
Well, you reported it to the NumPy project 😄 and we can't really help. |
You might be able to help more than you know, @mattip.. :) Do you speak the C language? This file |
That file (and some others in random) use:
try removing that? Probably makes sense in either case to refactor it. We use the following snippet also:
which seems far more reliable to get a force-inline (although maybe it was never important for gcc/clang toolchains in the random code). EDIT: Does EDIT: Or it really doesn't like redefining inline maybe? |
This is fixed since the switch to meson + #24968 , which was part of https://github.com/numpy/numpy/releases/tag/v1.26.2 So I think this can be closed. |
Thanks for the feedback @lazka |
Describe the issue:
I'm not sure if this should go here, pip or on mingw repo, but here I go. I am using mingw enviroment with windows 10. And can't install numpy with pip for python 3.10.
There is a mingw package that installs numpy with python 3.10 flawlessly, but of coruse when creating a virtual enviroment, numpy is not accessible, so you have to install it with pip, and it fails.
Reproduce the code example:
Error message:
NumPy/Python version information:
3.10
The text was updated successfully, but these errors were encountered: