-
Notifications
You must be signed in to change notification settings - Fork 114
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
Pip crashes in progress bar rendering on Windows #433
Comments
Hi @SimplyProgrammer. I just tried installing something in a Windows VM and it worked fine. From the traceback it seems it's hitting some code path for console handling in |
Hi, thanks for the reply. However I have also tried to run it in something less barbaric than cmd, in GitBash to be more specific and in that thing, after some waiting and I mean quite LONG waiting... :) it kinda worked, but then it still failed on "Preparing metadata"... but it at least did no crash instantly but still not exactly great...
installing matplotlib resulted in something quiet similar, it only took even longer and error was slightly different... |
Isn't there maybe a problem with the virtual environment, like it was generated incorrectly or something? |
My VM was Windows 11, I need to try Windows 10.
Did you pass it after the
That's unfortunately expected at this point. Regarding the failure, it seems that it's picking up compiler tools from
You don't strictly have to create a virtualenv, we just recommend it. Installing directly into the installation that you got with
If you installed packages into a virtual environment, they will be available only in that environment. If you're embedding into Java, you can use our maven/gradle plugins that can create and wire the virtualenv for you (example) or wire it yourself, it's just one option (example) and you can point it to a relative path. |
It's a different error. It seems now it can't find the compiler at all. You need to have MSVC compiler available. @timfel do we have some guide how to set it up?
The native libraries like numpy won't be any faster, they run the same C code under every interpreter. You can only get speed ups for the python code. Also we currently don't support the Tkinter standard module at all.
Then I think that's a bug in |
From what I can see this is how pyenv-win works, also for PyPy. @SimplyProgrammer It seems to me you are not running in a visual studio shell? The only supported + tested configuration for installing GraalPy on Windows is using Windows 11 and the latest Visual Studio Build Tools 2022, and running the pip install in an activated venv in a Developer PowerShell for VS 2022. I just tried this on my machine, with graalpy-24.1.0 installed via pyenv-win and a venv I had lying around without anything it it:
|
Well that's unfortunate, that Tkinter part is probably going to be a tiebreaker for me since I am already depended on it :/ @timfel |
You wrote earlier
AI and data science algorithms in Python libraries are already implemented in C, C++ and Fortran. For AI workloads, the Python code barely even registers for performance. For any project with interesting data sizes, all your time is spent in native code anyway. An alternative implementation of Python cannot help you here.
You have to
|
If you want to reproduce how we build the numpy wheels, fork this repository and run the github action to build windows wheels. You can enter |
I found this issue trying to build numpy under Windows using graalpy 24.1.1.
It looks like cython is reporting x86 but x86_64 is required (Need python for x86, but found x86_64)? In the meson-log.txt I see quite a few errors trying to launch cython:
I would appreciate any ideas what could be wrong here. |
@kostya-sh you didn't post enough output to see the patching succeeded, but I suspect your |
I will try you suggestion. Just FYI the patching was successful:
|
I have installed Graalpy 24.1.0 as a regular CPython on Windows 10 with pyenv-win and set is as currently used version with pyenv global command.
Then I have generated venv using graalpy -m venv .pyvenv and tried to
pyvenv/Scripts/python.exe -m pip --no-cache-dir install numpy.
However as it turns out I cant because it throws this:
Attempting to download something else, matplotlib for example resulted in the same thing...
So Is there something that I am doing wrong?
Because If you cant install the libraries such as numpy or matplotlib which are one of the most used ones, then that's a bit problematic to say at least...
The text was updated successfully, but these errors were encountered: