How can I save Python environment in Azure Custom image

Shuangbei Qian 1 Reputation point
2021-06-18T02:59:59.287+00:00

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 Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,086 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
302 questions
{count} votes