问题
I can't seem to get the logger to work in the online azure notesbooks workspace. I'm using python 3.6 environment. Running this import:
from azureml.logging import get_azureml_logger
gives me the following error:
ModuleNotFoundError: No module named 'azureml.logging
回答1:
The solution is
pip install "https://azuremldownloads.blob.core.windows.net/wheels/latest/azureml.logging-1.0.79-py3-none-any.whl?sv=2016-05-31&si=ro-2017&sr=c&sig=xnUdTm0B%2F%2FfknhTaRInBXyu2QTTt8wA3OsXwGVgU%2BJk%3D"
I found the blob url here. It's inside docker container dependencies.
https://github.com/Azure/LearnAI-Bootcamp/blob/master/lab03.3_manage_conda_envs_in_aml/0_README.md
回答2:
It seems that it's installed with Azure ML Workbench.
There is (currently) no way to install this as a stand-alone package from what I can find. If you look at the azureml
package on GitHub there is no "logging" in it.
来源:https://stackoverflow.com/questions/49438358/azureml-logging-module-not-found