Search code examples
azure-cloud-shell

Where do python packages get installed in Azure Cloud Shell


I logged into Azure portal, opened cli/powershell and executed pip install to download some python packages. Where do these packages get installed?

I am aware that I need a storage account when using cli. Azure prompted and created a resource group and storage account when I used cli/shell for the first time.

After installing the packages, I went to the storage browser of the storage account but I don't see any files anywhere.


Solution

  • I have done the same as you mentioned and after downloading I used pip show and I can find the location of installed package.

    enter image description here

    The packages will not be stored in your mounted Azure Storage Account but it stored in Azure Cloud Shell Environment which is managed internally by Azure Cloud Shell.

    If you want to manage the packages you can do that in the cloud shell terminal itself.