To resolve the issue, Please try installing on a notebook by adding % at the beginning of pip install command.
Ex: %pip install azure-core
Adding % at the beginning of pip install command will install it in the environment that is being used under that kernel
Do let us know if that works or have any further queries.
If the suggestions answers your query, do click Accept Answer and Yes. And, if you have any further queries do let us know.