No module named 'tensorflow.neuron'

0

Dear developers,

I am relatively new to AWS and EC2 instances. I have an EC2 Inf1 instance and I am trying to set up tensorflow neuron for deep learning applications. When I running the 'Resnet50 Compilation'example provided by AWS : https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-inferentia-tf-neuron.html

Uppon importing tensorflow neuron as follows : 'import tensorflow.neuron as tfn ' I receive the following error message: 'No module named 'tensorflow.neuron''

I check if the package is installed by running the pip list command in the virtual environment. This returns a list that includes the tensorflow-neuron package.

Enter image description here

I also tried to import tensorflow neuron as 'import tensorflow-neuron as tfn'. When I tried this I encountered a different error message Enter image description here

I hope that some of you might have an idea how to solve this.

2개 답변
0

Hi there,

There are a couple of things you can try to mitigate this issue.

  1. Re-installing Tensorflow

Uninstall tensorflow : $ pip uninstall tensorflow Then reinstall it : $ pip install tensorflow

  1. Upgrading the pip

pip install --upgrade pip pip uninstall tensorflow pip install tensorflow

  1. Check the version of the TensorFlow which is installed.

Also check out these links for more references and troubleshooting : https://stackoverflow.com/questions/44976199/installing-tensorflow-examples-in-ec2-instance https://stackoverflow.com/questions/41415629/importerror-no-module-named-tensorflow-python https://stackoverflow.com/questions/42244198/importerror-no-module-named-tensorflow

Thank you!

AWS
지원 엔지니어
Sagar_T
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠