0

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.

Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
  • No idea about Azure specifically, but can you not find `purelib` as described in [How do I find the location of my Python site-packages directory?](https://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-python-site-packages-directory)? Additionally, if you already have a package installed, `python -c 'import numpy; print(numpy.__file__)'` should tell you exactly where it is. – Amadan Apr 03 '23 at 07:09

2 Answers2

0

Please be more specific when you post questions. What you are talking about is The Azure Cloud Shell (not "Azure" as a general thing). Cloud Shell uses a storage account to persist certain settings in a storage account. Read more here.

silent
  • 14,494
  • 4
  • 46
  • 86
0

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.

RithwikBojja
  • 5,069
  • 2
  • 3
  • 7