title: ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::astor-0.7.1-py_0'
body: <p>I am trying to follow a Python tutorial and I have been able to execute almost everything, until the point of Deploying an endpoint to Azure with python.</p>
  
  <p>In order to give some context I have uploaded the scripts to my git account:
  <a href="https://github.com/levalencia/MLTutorial" rel="nofollow noreferrer">https://github.com/levalencia/MLTutorial</a></p>
  
  <p>File 1 and 2 Work perfectly fine</p>
  
  <p>However the following section in File 3 fails:</p>
  
  <pre><code>%%time
  from azureml.core.webservice import Webservice
  from azureml.core.model import InferenceConfig
  
  inference_config = InferenceConfig(runtime= "python", 
                                     entry_script="score.py",
                                     conda_file="myenv.yml")
  
  service = Model.deploy(workspace=ws, 
                         name='keras-mnist-svc2', 
                         models=[amlModel], 
                         inference_config=inference_config, 
                         deployment_config=aciconfig)
  
  service.wait_for_deployment(show_output=True)
  </code></pre>
  
  <p>with below error:</p>
  
  <pre><code>ERROR - Service deployment polling reached non-successful terminal state, current service state: Transitioning
  Operation ID: 8353cad2-4218-450a-a03b-df418725acb1
  More information can be found here: https://machinelearnin1143382465.blob.core.windows.net/azureml/ImageLogs/8353cad2-4218-450a-a03b-df418725acb1/build.log?sv=2018-03-28&amp;sr=b&amp;sig=UKzefxIrm3l7OsXxj%2FT4RsvUfAuhuaBwaz2P4mJu7vY%3D&amp;st=2020-03-11T12%3A23%3A33Z&amp;se=2020-03-11T20%3A28%3A33Z&amp;sp=r
  Error:
  {
    "code": "EnvironmentBuildFailed",
    "statusCode": 400,
    "message": "Failed Building the Environment."
  }
  
  ERROR - Service deployment polling reached non-successful terminal state, current service state: Transitioning
  Operation ID: 8353cad2-4218-450a-a03b-df418725acb1
  More information can be found here: https://machinelearnin1143382465.blob.core.windows.net/azureml/ImageLogs/8353cad2-4218-450a-a03b-df418725acb1/build.log?sv=2018-03-28&amp;sr=b&amp;sig=UKzefxIrm3l7OsXxj%2FT4RsvUfAuhuaBwaz2P4mJu7vY%3D&amp;st=2020-03-11T12%3A23%3A33Z&amp;se=2020-03-11T20%3A28%3A33Z&amp;sp=r
  Error:
  {
    "code": "EnvironmentBuildFailed",
    "statusCode": 400,
    "message": "Failed Building the Environment."
  }
  </code></pre>
  
  <p>When I download the logs, I got this:</p>
  
  <pre><code>wheel-0.34.2         | 24 KB     |            |   0% [0m[91m
  wheel-0.34.2         | 24 KB     | ########## | 100% [0m
  Downloading and Extracting Packages
  Preparing transaction: ...working... done
  Verifying transaction: ...working... done
  Executing transaction: ...working... failed
  [91m
  ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::astor-0.7.1-py_0'.
  FileNotFoundError(2, "No such file or directory: '/azureml-envs/azureml_6abde325a12ccdba9b5ba76900b99b56/bin/python3.6'")
  Attempting to roll back.
  
  [0mRolling back transaction: ...working... done
  [91m
  FileNotFoundError(2, "No such file or directory: '/azureml-envs/azureml_6abde325a12ccdba9b5ba76900b99b56/bin/python3.6'")
  
  
  [0mThe command '/bin/sh -c ldconfig /usr/local/cuda/lib64/stubs &amp;&amp; conda env create -p /azureml-envs/azureml_6abde325a12ccdba9b5ba76900b99b56 -f azureml-environment-setup/mutated_conda_dependencies.yml &amp;&amp; rm -rf "$HOME/.cache/pip" &amp;&amp; conda clean -aqy &amp;&amp; CONDA_ROOT_DIR=$(conda info --root) &amp;&amp; rm -rf "$CONDA_ROOT_DIR/pkgs" &amp;&amp; find "$CONDA_ROOT_DIR" -type d -name __pycache__ -exec rm -rf {} + &amp;&amp; ldconfig' returned a non-zero code: 1
  2020/03/11 12:28:11 Container failed during run: acb_step_0. No retries remaining.
  failed to run step ID: acb_step_0: exit status 1
  
  Run ID: cb3 failed after 2m21s. Error: failed during run, err: exit status 1
  </code></pre>
  
  <p>Update 1:</p>
  
  <p>I tried to run:
  conda list    --name base  conda</p>
  
  <p>inside the notebook and I got this:</p>
  
  <pre><code> # packages in environment at /anaconda:
      #
      # Name                    Version                   Build  Channel
      _anaconda_depends         2019.03                  py37_0  
      anaconda                  custom                   py37_1  
      anaconda-client           1.7.2                    py37_0  
      anaconda-navigator        1.9.6                    py37_0  
      anaconda-project          0.8.4                      py_0  
      conda                     4.8.2                    py37_0  
      conda-build               3.17.6                   py37_0  
      conda-env                 2.6.0                         1  
      conda-package-handling    1.6.0            py37h7b6447c_0  
      conda-verify              3.1.1                    py37_0  
  
      Note: you may need to restart the kernel to use updated packages.
  </code></pre>
  
  <p>However in the deployment log I got this:</p>
  
  <pre><code>Solving environment: ...working... 
  done
  [91m
  
  ==&gt; WARNING: A newer version of conda exists. &lt;==
    current version: 4.5.11
    latest version: 4.8.2
  
  Please update conda by running
  
      $ conda update -n base -c defaults conda
  </code></pre>