-
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
When doing pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./, shows ModuleNotFoundError: No module named 'packaging' #1737
Comments
I got the same error. |
1 similar comment
I got the same error. |
Hey! I also got this error, and I've solved it. You can see #1653, which said:
|
could you share your package details? thanks in advance! |
My envs: |
@lengendhao thanks!! I create an env exactly as yours, and with 22.04-dev, finally apex successfully installed with |
python 3.7.3 |
I also met this problem. #1748 (comment) solved my problem. |
Describe the Bug
When doing pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./, shows ModuleNotFoundError: No module named 'packaging', but I have packaging installed
The detailed error looks like this:
Traceback (most recent call last):
File "C:\Users\luo00318\AppData\Roaming\Python\Python39\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\luo00318\AppData\Roaming\Python\Python39\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\luo00318\AppData\Roaming\Python\Python39\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\luo00318\AppData\Local\Temp\pip-build-env-wchsm8v0\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\luo00318\AppData\Local\Temp\pip-build-env-wchsm8v0\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "C:\Users\luo00318\AppData\Local\Temp\pip-build-env-wchsm8v0\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
exec(code, locals())
File "", line 5, in
ModuleNotFoundError: No module named 'packaging'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'C:\Users\luo00318\AppData\Local\anaconda3\envs\torch_gpu\python.exe' 'C:\Users\luo00318\AppData\Roaming\Python\Python39\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py' get_requires_for_build_wheel 'C:\Users\luo00318\AppData\Local\Temp\tmptlqivujq'
cwd: C:\Users\luo00318\Research\ICL\myplan\week4\apex
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Minimal Steps/Code to Reproduce the Bug
Expected Behavior
should have been installed correctly?
Environment
The text was updated successfully, but these errors were encountered: