Hi Lovedeep Singh,
Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!
To update the Python version in Azure AI Foundry’s Prompt Flow, you cannot directly modify the flow.dag.yaml
file to achieve this, as the Python runtime is determined by the base Docker image used for the compute session. Instead, you can create a custom Docker image that includes Python 3.10.1 and all necessary dependencies. Begin by writing a Dockerfile that installs Python 3.10.1, sets it as the default Python version, and ensures Prompt Flow dependencies are pre-installed. Build and push the image to a container registry, and then configure your compute session in Prompt Flow to use this custom image. Additionally, ensure your flow.dag.yaml
file references the correct dependencies, adjusting any compatibility issues that may arise. If you encounter errors, check for missing dependencies or environment variables required by Prompt Flow. This approach gives you control over the Python version while maintaining compatibility with Prompt Flow’s requirements.