i am try to run a Python Script in AzureML SDK. However in the runs log file, it prints the same error over and over again:
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
The defined conda environment looks like this:
{
"databricks": {
"eggLibraries": [],
"jarLibraries": [],
"mavenLibraries": [],
"pypiLibraries": [],
"rcranLibraries": []
},
"docker": {
"arguments": [],
"baseDockerfile": null,
"baseImage": "mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210301.v1",
"baseImageRegistry": {
"address": null,
"password": null,
"registryIdentity": null,
"username": null
},
"enabled": false,
"platform": {
"architecture": "amd64",
"os": "Linux"
},
"sharedVolumes": true,
"shmSize": null
},
"environmentVariables": {
"EXAMPLE_ENV_VAR": "EXAMPLE_VALUE"
},
"inferencingStackVersion": null,
"name": "MyEnvironment04",
"python": {
"baseCondaEnvironment": null,
"condaDependencies": {
"channels": [
"anaconda",
"conda-forge"
],
"dependencies": [
"python=3.6.2",
{
"pip": [
"pip=20.2.40"
]
},
"scikit-learn"
],
"name": "azureml_815589d460c271a1415198e7283fa9e9"
},
"condaDependenciesFile": null,
"interpreterPath": "python",
"userManagedDependencies": false
},
"r": null,
"spark": {
"packages": [],
"precachePackages": true,
"repositories": []
},
"version": "1"
}
I am assuming that the definition for my pip package in my environment is wrong.
# Create the dependencies object
myenv_dep = CondaDependencies.create(conda_packages=['scikit-learn'], pip_packages=['pip=20.2.40'])
myenv.python.conda_dependencies = myenv_dep
Please let me know if i need to provide further information.
Thank you!