Error importing tensorflow under WIndows 10

Usually I use Linux for all my activities.
For this course I needed to use Windows 10 in order to reply to some learners.
I faced a strange problem. When I tried to import tensorflow (import tensorboard as tf) the notebook crashed.
Spending some hours on Google I found out the reasons.
I had a couple of problems.
First I needed to reinstall the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019
Anyway the issues was still there.
Then I found out that my the CPU lacks AVX instruction. So I needed a tensorflow version built without the AVX instruction, but with SSE2 support.
I have found the tensorflow wheel without AVX at the following link

There are builds for many different version of tensorflow.
Installing the wheel for tensorflow 2.6.0 fixed my issue under Windows 10. (BTW to install a .whl you can use the usual ‘pip’ command: pip install filename.whl
Some helpful hints are available at this link.
Hope this helps anyone else.
BR

1 Like

Thanks for sharing this.

1 Like