Skip to content

Commit 148270f

Browse files
authored
Update how-to-troubleshoot-environments.md
1 parent d0353b4 commit 148270f

File tree

1 file changed

+84
-11
lines changed

1 file changed

+84
-11
lines changed

articles/machine-learning/how-to-troubleshoot-environments.md

Lines changed: 84 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,9 @@ The following are accepted location types:
573573
*Applies to: Python SDK v1*
574574

575575
For scenarios in which you're storing your Docker build context in a storage account
576-
* The path of the build context must be specified as `https://<storage-account>.blob.core.windows.net/<container>/<path>`
576+
* The path of the build context must be specified as
577+
578+
`https://<storage-account>.blob.core.windows.net/<container>/<path>`
577579
* Ensure that the location you provided is a valid URL
578580
* Ensure that you've specified a container and a path
579581

@@ -692,7 +694,7 @@ conda_dep.add_conda_package("python==3.8")
692694

693695
*Applies to: all scenarios*
694696

695-
If you're using a yaml for your conda specification, include Python as a dependency
697+
If you're using a YAML for your conda specification, include Python as a dependency
696698

697699
```yaml
698700
name: project_environment
@@ -708,21 +710,92 @@ channels:
708710
* [Add conda package v1](https://aka.ms/azureml/environment/add-conda-package-v1)
709711
710712
### Multiple Python versions
711-
- Only one Python version can be specified in the environment definition
713+
<!--issueDescription-->
714+
**Potential causes:**
715+
* You've specified more than one Python version in your environment definition
716+
717+
**Affected areas (symptoms):**
718+
* Failure in registering your environment
719+
<!--/issueDescription-->
720+
721+
**Troubleshooting steps**
722+
723+
*Applies to: Python SDK v1*
724+
725+
Choose which Python version you want to use, and remove all other versions
726+
727+
```python
728+
myenv.python.conda_dependencies.remove_conda_package("python=3.6")
729+
```
730+
731+
*Applies to: all scenarios*
732+
733+
If you're using a YAML for your conda specification, include only one Python version as a dependency
734+
735+
**Resources**
736+
* [CondaDependencies Class v1](python/api/azureml-core/azureml.core.conda_dependencies.condadependencies)
712737

713738
### Python version not supported
714-
- The Python version provided in the environment definition isn't supported
715-
- Consider using a newer version of Python
716-
- See [Python versions](https://aka.ms/azureml/environment/python-versions) and [Python end-of-life dates](https://aka.ms/azureml/environment/python-end-of-life)
739+
<!--issueDescription-->
740+
**Potential causes:**
741+
* You've specified a Python version that has reached its end-of-life and is no longer supported
742+
743+
**Affected areas (symptoms):**
744+
* Failure in registering your environment
745+
<!--/issueDescription-->
746+
747+
**Troubleshooting steps**
748+
749+
Specify a [python version](https://aka.ms/azureml/environment/python-versions) that hasn't reached and isn't nearing its [end-of-life](https://aka.ms/azureml/environment/python-end-of-life)
717750

718751
### Python version not recommended
719-
- The Python version used in the environment definition is at or near its end of life, and should be avoided
720-
- Consider using a newer version of Python as the specified version will eventually be unsupported
721-
- See [Python versions](https://aka.ms/azureml/environment/python-versions) and [Python end-of-life dates](https://aka.ms/azureml/environment/python-end-of-life)
752+
<!--issueDescription-->
753+
**Potential causes:**
754+
* You've specified a Python version that is at or near its end-of-life
755+
756+
**Affected areas (symptoms):**
757+
* Failure in registering your environment
758+
<!--/issueDescription-->
759+
760+
**Troubleshooting steps**
761+
762+
Specify a [python version](https://aka.ms/azureml/environment/python-versions) that hasn't reached and isn't nearing its [end-of-life](https://aka.ms/azureml/environment/python-end-of-life)
722763

723764
### Failed to validate Python version
724-
- The provided Python version may have been formatted improperly or specified with incorrect syntax
725-
- See [conda package pinning](https://aka.ms/azureml/environment/how-to-pin-conda-packages)
765+
<!--issueDescription-->
766+
**Potential causes:**
767+
* The provided Python version was formatted improperly or specified with incorrect syntax
768+
769+
**Affected areas (symptoms):**
770+
* Failure in registering your environment
771+
<!--/issueDescription-->
772+
773+
**Troubleshooting steps**
774+
775+
*Applies to: Python SDK v1*
776+
777+
Use correct syntax to specify a Python version using the SDK
778+
779+
```python
780+
myenv.python.conda_dependencies.add_conda_package("python=3.8")
781+
```
782+
783+
*Applies to: all scenarios*
784+
785+
Use correct syntax to specify a Python version in a conda YAML
786+
787+
```yaml
788+
name: project_environment
789+
dependencies:
790+
- python=3.8
791+
- pip:
792+
- azureml-defaults
793+
channels:
794+
- anaconda
795+
```
796+
797+
**Resources**
798+
* See [conda package pinning](https://aka.ms/azureml/environment/how-to-pin-conda-packages)
726799
727800
### *Conda issues*
728801
### Missing conda dependencies

0 commit comments

Comments
 (0)