Azure / Azure/azureml-examples

Error import tensorflow_hub / tensorflow

Open
#2,601 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
2k
Forks
1.7k
Avg merge
18h 18m
Merged PRs (30d)
2

Description

### Operating System

Linux

### Version Information

python 3.10
SDK 2

### Steps to reproduce

I'm trying this esample inside Azure machine learning studio:
https://github.com/Azure/azureml-examples/blob/main/sdk/python/endpoints/batch/deploy-models/imagenet-classifier/imagenet-classifier-batch.ipynb, using a kernel python 3.10 SDK2.
Anytime I try to import esternal libraries i.e.
import tensorflow_hub as hub
import tensorflow as tf

it say module not found

I tryed to install them with conda and pip too
!conda install -c conda-forge -c anaconda tensorflow-hub pillow pandas scipy -y
!pip install tensorflow tensorflow_hub pillow pandas scipy

but the issue persist.
How the libraries shall be installed?

### Expected behavior

Correct import of module

### Actual behavior

Error of import, either after installing modules

### Addition information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.