Hi All-
While compiling PyTorch from Source I get the following errors and then installation stops
error: typing-extensions 4.4.0 is installed but typing-extensions>=4.7.1 is required by {‘filelock’}
Could you please help me with this?
Thanks!
Hi All-
While compiling PyTorch from Source I get the following errors and then installation stops
error: typing-extensions 4.4.0 is installed but typing-extensions>=4.7.1 is required by {‘filelock’}
Could you please help me with this?
Thanks!
Update typing-extension
to version >=4.7.1
as mentioned in the error message via pip
or conda
(depending how you’ve installed it before).
I did but Issue persists. This is complete error log. Thanks!
" /global/common/software/e3sm/anaconda_envs/base/envs/e3sm_unified_1.8.1_pm-cpu/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/global/common/software/e3sm/anaconda_envs/base/envs/e3sm_unified_1.8.1_pm-cpu/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Checking .pth file support in /pscratch/sd/z/zhan391/DARPA_project/e3sm_model/code/deepONet/pytorch_test/torch/lib/python3.10/site-packages
/global/common/software/e3sm/anaconda_envs/base/envs/e3sm_unified_1.8.1_pm-cpu/bin/python3 -E -c pass
TEST FAILED: /pscratch/sd/z/zhan391/DARPA_project/e3sm_model/code/deepONet/pytorch_test/torch/lib/python3.10/site-packages does NOT support .pth files
bad install directory or PYTHONPATH
/pscratch/sd/z/zhan391/DARPA_project/e3sm_model/code/deepONet/pytorch_test/torch/lib/python3.10/site-packages/filelock-3.12.3-py3.10.egg
error: typing-extensions 4.4.0 is installed but typing-extensions>=4.7.1 is required by {‘filelock’}
"
What does pip list | grep typing
return?
It returns typing_extensions 4.7.1
In this case I unfortunately don’t know where PyTorch find this old version from so you might need to check all virtual environments.
Thank you. Let me check.