# Why i get this following error in Face Recognition?

**URL:** <https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [July 18, 2022, 12:03pm UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282 "2022-07-18T12:03:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CourseraFan](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@CourseraFan](https://community.deeplearning.ai/u/CourseraFan)\
**Post date:** [July 18, 2022, 12:03pm UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282/1 "2022-07-18T12:03:32Z")

</div>

I tried to do the same step for Face Recognition in my local jupyter notebook. But then i get this error, which i stuck for hours, and confused, because in the assignment, it doesn’t pop up this type of error, while for running this code in my local jupyter notebook, it pop up this error. Also i already download the model.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/4/f/4f7d84b4e3b12f5713fb7abcb78ec3d8e537d1c4.png)

---

<div class="post-metadata">

**Author:** ![anon57530071](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon57530071](https://community.deeplearning.ai/u/anon57530071)\
**Post date:** [July 18, 2022, 12:23pm UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282/2 "2022-07-18T12:23:12Z")

</div>

There are lots of version dependencies. Coursera platform is slightly old. Basically, the version of tensorflow is 2.3.

In this case, at first, you may need to reinstall Python 3.7. If it does not work, then, reinstall Tensorflow 2.3/Keras 2.4.3, which is same as my local environment for this exercise.

(I have multiple conda environment for Coursera exercises. You will soon be as well… 🙂 )

---

<div class="post-metadata">

**Author:** ![CourseraFan](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@CourseraFan](https://community.deeplearning.ai/u/CourseraFan)\
**Post date:** [July 18, 2022, 12:43pm UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282/3 "2022-07-18T12:43:01Z")

</div>

Oh ok. Tomorrow i’ll try. Thanks for the reply!

---

<div class="post-metadata">

**Author:** ![CourseraFan](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@CourseraFan](https://community.deeplearning.ai/u/CourseraFan)\
**Post date:** [July 20, 2022, 8:30am UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282/4 "2022-07-20T08:30:37Z")

</div>

Hey, thanks it actually works! Just asking, is there a chance that the pretrained model can be used with python 3.10 if i can download it somewhere else? Because i really need to use Python 3.10, not Python 3.7.

---

<div class="post-metadata">

**Author:** ![anon57530071](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon57530071](https://community.deeplearning.ai/u/anon57530071)\
**Post date:** [July 20, 2022, 8:33am UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282/5 "2022-07-20T08:33:13Z")

</div>

I believe you are using conda environment. You just need to create one conda environment for Python 3.7, since, for this particular exercise, you do not need python 3.10.

---

<div class="post-metadata">

**Author:** ![CourseraFan](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@CourseraFan](https://community.deeplearning.ai/u/CourseraFan)\
**Post date:** [July 20, 2022, 8:41am UTC](https://community.deeplearning.ai/t/why-i-get-this-following-error-in-face-recognition/164282/6 "2022-07-20T08:41:34Z")

</div>

I see, thanks for your help!
