I installed a Python library in a custom environment of an Azure ML pipeline to run an "Execute Python Script". But I'm unable to understand what process I need to follow to change the environment of that "Execute Python Script".
This one I want to change. In "Docker args" I specify a custom environment's name, but it does not work. I am not sure if it is the proper way.
"pipeEnvTe" my custom environment's name



Based on the documentation, the
Execute Python Script componentmake use of default environment which is based on Anaconda distribution of Python. So, it seems there is no direct way to change the environment.One possible solution is by installing required packages that aren't in the pre-installed list.
Below is sample code to add in your python script that will install the required package:
With the above code snippet added to the python script I was able to include required package in the Execute Python Script component.
This way you can include all the required packages with are not in Preinstalled Python packages List.