Different tensorflow version using azure ml portal vs VS Code

M J 1 Reputation point
2021-07-29T00:18:12.667+00:00

I am using azure ML to run an python code in a jupyter notebook using tensorflow. I'm using "Python 3.6 - Azure ML" and an instance of azure compute to run it. It's showing tensorflow version as 2.1.0 .When I run the same code using VS Code connected to azure portal remotely, it's shows tensorflow version as 2.5.0. Why this discrepency?

Also I need tensorflow version 2.3.0 or up but there is not way for me to upgrade that using azure ml portal. Any help will be appreciated. Thank you!

118783-image.png

118822-image.png

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,563 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2021-07-29T09:56:36.073+00:00

    @M J I think the discrepancy is because the notebook is using a different environment with the kernel Python 3.6 - Azure ML. You can install the required version of tensorflow or any package with pip install from a new cell in the notebook.

    !pip install tensorflow==2.3.0

    This should help you use this environment from the notebook. Thanks.