# Error importing tensorflow under WIndows 10

**URL:** <https://community.deeplearning.ai/t/error-importing-tensorflow-under-windows-10/38999>\
**Category:** MLEP Resources\
**Created:** [September 18, 2021, 5:48am UTC](https://community.deeplearning.ai/t/error-importing-tensorflow-under-windows-10/38999 "2021-09-18T05:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabioantonini](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/fabioantonini/32/158482_2.png) [@fabioantonini](https://community.deeplearning.ai/u/fabioantonini)\
**Post date:** [September 18, 2021, 5:48am UTC](https://community.deeplearning.ai/t/error-importing-tensorflow-under-windows-10/38999/1 "2021-09-18T05:48:53Z")

</div>

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](https://www.visualstudio.com/downloads/)  
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

> **[GitHub - fo40225/tensorflow-windows-wheel: Tensorflow prebuilt binary for...](https://github.com/fo40225/tensorflow-windows-wheel/)**
>
> Tensorflow prebuilt binary for Windows. Contribute to fo40225/tensorflow-windows-wheel development by creating an account on GitHub.

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](https://github.com/tensorflow/tensorflow/issues/17386).  
Hope this helps anyone else.  
BR

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [July 31, 2022, 7:05am UTC](https://community.deeplearning.ai/t/error-importing-tensorflow-under-windows-10/38999/2 "2022-07-31T07:05:15Z")

</div>

Thanks for sharing this.
