question

ShuangbeiQian-1979 avatar image
0 Votes"
ShuangbeiQian-1979 asked karishmatiwari-msft edited

How can I save Python environment in Azure Custom image

Hi

I found Python package won't be save in generalized image, like numpy, torch, which I installed with pip. but after I create image, these package was deleted.
I also specify the install path to /usr/lib/python3/dist-package, but still not work.
I try to generate specialized image, but this image can't be used in batch service and can't be used in batch pool.
How can I save these installed python package in generalized image?

Thanks

azure-batchazure-virtual-machines-images
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you please share the whole scenario so that we can help you better, which Azure services are you using - Azure Batch, Azure VM? Let me know. Thanks.

0 Votes 0 ·

@ShuangbeiQian-1979 Is there an update?

0 Votes 0 ·

Sorry for late response.

I'm using Azure batch, I want to create Batch pool with custom image. so I firstly create a VM and install all python dependency with pip install. then I create a snapshot and image gallery. but when I create pool with this image, I find these python dependency didn't exist. how can i do?

Thanks

0 Votes 0 ·

0 Answers