question

kk-7094 avatar image
0 Votes"
kk-7094 asked romungi-MSFT commented

I got an error that the kernel could not be found in Azure ml.

When I was using a compute instance with azure ml, I got the following message:
168157-kernelerror.png
The kernel for python 3.8 azure ml was not available.
Please tell me the cause and solution.
The instance I was using is:
Virtual machine size
Standard_DS11_v2 (2 cores, 14 GB RAM, 28 GB disk)


azure-machine-learning
kernelerror.png (22.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@kk-7094 Did the below suggestion help? It would be great if you could accept the same as answer if it was helpful. Thanks!!

0 Votes 0 ·

@kk-7094 Did you get a chance to try the below steps and setup the kernel of your choice?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@kk-7094 Yes, by default the python 3.8 version of kernel is not available on Azure ML notebooks. You can however create your custom kernel and use it from the dropdown for any your notebooks by following some simple steps:

  • Use the terminal of your compute by clicking the open terminal option.

168257-image.png

  • Run the following commands on the terminal using conda to create a python 3.8 environment and creating a kernel which can be used with your notebook.

    conda create -n py38 python=3.8
    conda activate py38

    conda install pip
    conda install ipykernel
    python -m ipykernel install --user --name python38 --display-name "Python 38"

  • Stop and start your compute instance and load the drop down to see the new kernel. Stopping and starting the kernel is available from the notebook screen as seen in the first screen shot

168286-image.png

  • Print the version in a cell to confirm if the desired kernel or python version is picked up.

168287-image.png


If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.









image.png (4.5 KiB)
image.png (9.5 KiB)
image.png (15.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.