Hi @Aditi Mokashi ,
As per the given error message, we see that it is mainly due to the compatibility issue between the installed versions of the azure.identity
library and its dependencies, particularly the cryptography
library, and your Python version.
Please follow the below to get this issue fixed:
- upgrade
cryptography
library which is a dependency forazure.identity
, and older versions may not be compatible with your setup. By following the below command to upgrade:pip install --upgrade cryptography
- The version for azure-identity==1.6.0 quite old one, please upgrade it to the latest version to ensure that it is compatible with Python 3.9.
- Also, upgrade Python to the latest patch version of Python 3.9 (e.g.: 3.9.13) or consider using Python 3.10 for better compatibility.
- After upgrading Python, make sure reinstall the Azure SDK libraries to ensure compatibility.
pip install azure-core azure-identity azure-storage-blob
- Also, please verify the Rust installation
_rust
module error suggests that thecryptography
library requires Rust for building. Make sure Rust is installed on the system from rust-lang website. Once it is installed verify the version by using the cmd:rustc --version
- If the issue still persists, even after following all the above. Clear the pip cache and reinstall the libraries.
I hope by following the above helps in solving the issue.pip cache purge pip install azure-core azure-identity azure-storage-blob
Please let us know in the comments section, if there are any further queries. We will be glad to assist you closely in resolving the issue.
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.