Skip to content
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

How to install apex #1851

Open
Zerycii opened this issue Oct 19, 2024 · 5 comments
Open

How to install apex #1851

Zerycii opened this issue Oct 19, 2024 · 5 comments

Comments

@Zerycii
Copy link

Zerycii commented Oct 19, 2024

Image
I always meet this error.Can someone help me?

@akshaypn
Copy link

Hi, I am also facing the exact same issue. Did anyone find a fix?

@XYkong-CS
Copy link

It seems you should install "torch" before installing apex.

@rensiyingying
Copy link

Hi,Maybe you could try command: pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./

@lix19937
Copy link

git clone https://github.com/NVIDIA/apex
cd apex
# if pip >= 23.1 
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" ./

# otherwise
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./

And you should make sure your torch cuda version must match the /usr/local/cuda/bin/nvcc

@AlongWY
Copy link

AlongWY commented Nov 20, 2024

try this one 试试这个?apex wheels

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

No branches or pull requests

6 participants