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

ModuleNotFoundError: No module named 'packaging' when install apex #87

Closed
kkscilife opened this issue Jul 17, 2023 · 6 comments
Closed

Comments

@kkscilife
Copy link
Collaborator

Describe the bug

when I install apex, some error occurred:
ModuleNotFoundError: No module named 'packaging'
error: subprocess-exited-with-error

Environment

CUDA: 11.7
python: 3.10

Other information

No response

@kkscilife
Copy link
Collaborator Author

I resolved this problem by this method:
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--global-option=--cpp_ext" --config-settings "--global-option=--cuda_ext" ./

It's the issue of apex: NVIDIA/apex#1679

@lezhaotj
Copy link

lezhaotj commented Aug 9, 2023

I resolved this problem by this method: pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--global-option=--cpp_ext" --config-settings "--global-option=--cuda_ext" ./

It's the issue of apex: NVIDIA/apex#1679

Very helpful,thank you so much!

@mashengkun
Copy link

but new error:
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@SmileDreamer
Copy link

but new error: TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Hello! I made the same error as you. May I ask how you solved this error?

@douyizi
Copy link

douyizi commented Jan 12, 2024

but new error: TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Hello! I made the same error as you. May I ask how you solved this error?

Hi! I made the same error as you.Have you solved this problem now?

@SmileDreamer
Copy link

SmileDreamer commented Jan 12, 2024 via email

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

5 participants