# Tensorflow for python2

**URL:** <https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995>\
**Category:** Jetson Nano\
**Created:** [June 6, 2019, 8:29am UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995 "2019-06-06T08:29:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![schoninger](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@schoninger](https://forums.developer.nvidia.com/u/schoninger)\
**Post date:** [June 6, 2019, 8:29am UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995/1 "2019-06-06T08:29:59Z")

</div>

Hi,

Is there a plan to release a python2 version for tensorflow as many programs are python2 only.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [June 10, 2019, 2:47am UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995/2 "2019-06-10T02:47:34Z")

</div>

Hi,

Our official TensorFlow will only support python3 after JetPack4.2.

You can build it from source.  
Here is the steps shared by other user few days ago:  
[url][https://devtalk.nvidia.com/default/topic/1055131/jetson-agx-xavier/building-tensorflow-1-13-on-jetson-xavier/[/url]](https://devtalk.nvidia.com/default/topic/1055131/jetson-agx-xavier/building-tensorflow-1-13-on-jetson-xavier/%5B/url%5D)

Thanks.

---

<div class="post-metadata">

**Author:** ![schoninger](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@schoninger](https://forums.developer.nvidia.com/u/schoninger)\
**Post date:** [June 10, 2019, 4:55am UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995/3 "2019-06-10T04:55:52Z")

</div>

Dear AastaLLL,

Thanks for your answer.  
Indeed, i am in the building process. i will update my steps once everything done in case someone needs also tensorflow for python2.

Best,

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [June 11, 2019, 2:42am UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995/4 "2019-06-11T02:42:15Z")

</div>

Hi,

It will be good.  
Look forward to your update.

Thanks.

---

<div class="post-metadata">

**Author:** ![schoninger](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@schoninger](https://forums.developer.nvidia.com/u/schoninger)\
**Post date:** [June 13, 2019, 1:00am UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995/5 "2019-06-13T01:00:55Z")

</div>

Dear AastaLLL,

Come back to you to update the status of tensorflow for python2.  
So I managed to compile tensorflow from source for python 2.  
I have successfully built the wheel file by running the process inside the virtual environment.  
My python path and python packages path were linking to the one of virtual env.  
I have used:

- Tensorflow 1.12.2 to match my version in my desktop
- Bazel 0.15.2
- protobuf 3.6.1
- gcc 7.4.0 ( the one from NVIDIA jetson nano image)

For the build i set local\_resources=2048.0,0.5,1.0 and the whole process took about 20hours to finish.  
If anyone has questions, please feel to ask.

Thank you

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:44pm UTC](https://forums.developer.nvidia.com/t/tensorflow-for-python2/75995/6 "2021-10-18T17:44:23Z")

</div>

Closed on October 18, 2021, 5:44pm UTC


