-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
can't install apex #1594
Comments
I'm getting the same issue |
Same |
could you install |
That solved it for me. |
Doesn't work for me, packaging already installed |
It works. Thank you! |
And APEX gets installed successfully for me. |
cuda 11.7 unzip apex.zip 1、install no cuda 2、 install with cuda |
same problem, torch.version = 1.12.0+cu113 running egg_info torch.version = 1.12.0+cu113 Compiling cuda extensions with Traceback (most recent call last): × Running setup.py install for apex did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. This is -- a caller that pip uses to run setup.py- It imports setuptools before invoking setup.py, to enable projects that directlyimport from
|
thank you very much |
conda install packaging not works, |
conda install packaging not works |
Which older version did you use? |
I checkout the commit "6943fd26e04c59327de32592cf5af68be8f5c44e" and it works (actually chosen randomly an older one) |
Using the release 23.05 works for me (https://github.com/NVIDIA/apex/tags) |
This release worked for me too, thanks @zarzen ! My environment: |
try add |
After trying all the solutions above (but the issue still kept unresolved), this one eventually worked for me 👍 |
thx |
It works for me. The full command is: |
As discussed in NVIDIA/apex#1594, it appears the only solution to make apex build on a recent release is to ignore the build dependencies during packaging... Otherwise, we get the error that the `packaging` package is missing, although we explicitly install it.
Thankyou it's worked |
I chosed 22.3 in tags,successed |
pip uninstall setuptools pip install setuptools==60.2.0 pip install packaging rm -R apex git clone https://github.com/NVIDIA/apex cd apex pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./ ~/It will work :) |
Having tried all of the above, but still not working for me.... |
it works! thanks mikenetrino :) |
|
hero |
Worked for me |
Worked for me. Thank you my hero. |
the full script is this:
|
It works. Thanks a lot. |
--no-build-isolation flag solves this issue for installation NVIDIA/apex#1594
it did! |
Try, |
cooooooooooooollll!!! it works! thanls!! |
i use this :pip install -v --no-cache-dir . --no-build-isolation |
This works for me! Thank you so much |
Thanks, I solved it by change to this version, but there are some weird warning while I was installing, but eventually installed, if I meet some problem after, I'll leave a comment here. |
Got the same error.
combined with downgrading setuptools from version 70 works! |
I'm just kind of give up on apex, it even don't have a stable version, so. |
Following... have the same issue. |
I used to get this error: ModuleNotFoundError: No module named 'packaging'. FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda-10.0/bin/nvcc': '/usr/local/cuda-10.0/bin/nvcc' × Preparing metadata (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. How I could solve it? |
Thanks! |
Thank you |
my env:
Pytorch==1.7.0
python==3.8.15
CUDA==11.0
The text was updated successfully, but these errors were encountered: