Hi
Thank you for submitting your query on the Microsoft Q&A Platform.
Issue is likely caused by an incompatible system library (GLIBCXX_3.4.30), which is required by the scipy
package in your Azure Machine Learning environment.
Here are some troubleshooting steps that may help resolve the issue:
1.First, make sure that the Azure Machine Learning compute instance is using the correct and updated environment. To do this, go to the Azure Machine Learning Studio, open the Compute page, and check which Python environment is being used. If needed, you can update the environment by running the following commands in the terminal:
pip install --upgrade scikit-learn scipy
2.Error suggests that the GLIBCXX
library version is obsolete. While upgrading the system libraries directly on the compute instance is not straightforward, you can try to:
Create a custom environment YAML file for your Azure ML job with the latest versions of necessary packages, ensuring compatibility with the compute environment.
Install the updated version of scipy
, scikit-learn
, and other libraries in this environment.
3.If the direct upgrade of scikit-learn
and scipy
does not resolve the issue, you can create a custom environment in Azure Machine Learning. To do this, define an environment.yml
file with the necessary dependencies, such as:
name: custom-aml-environment
dependencies:
- python=3.8
- scikit-learn
- scipy
- pip
- pip:
- azureml-core
- azureml-dataprep
- azureml-train
4.After updating the libraries, rerun the script as a command job:
Open the Labs/08/Run script as command job.ipynb notebook and run all the cells.
Navigate to the Jobs page in Azure ML studio and monitor the job's progress.
5.After completing the exercise, remember to delete the resource group to avoid unnecessary charges by following the steps outlined in the original exercise instructions.
If updating the libraries and environment resolves the issue, you should be able to run your script without encountering the GLIBCXX
error.
If the issue persists, please feel free to contact us for further assistance and attach a screenshot of the error for reference.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.
Thank you.