# Error in Installing leaf

**URL:** <https://forum.legato.io/t/error-in-installing-leaf/6352>\
**Category:** Uncategorized\
**Created:** [November 25, 2022, 8:54am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352 "2022-11-25T08:54:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneel.mekala](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@suneel.mekala](https://forum.legato.io/u/suneel.mekala)\
**Post date:** [November 25, 2022, 8:54am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/1 "2022-11-25T08:54:27Z")

</div>

I found that installing leaf has dependency on python-jinja2 and python-jinja2 is not supported on latest 64 bit Ubuntu 22 LTS. However it installs well on the older 32 bit Ubuntu 16 LTS. Is there a known issue with latest Ubuntu or it is with the machine architecture (64 and 32 bit OS)?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 25, 2022, 9:04am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/2 "2022-11-25T09:04:07Z")

</div>

Other user can make it work in Ubuntu22.04 :

> [@Legato vscode install Ubuntu 22.04.1](https://forum.legato.io/t/legato-vscode-install-ubuntu-22-04-1/6301/9):
>
> Maybe need to install pip and then can install python-jinja: sudo apt install python-pip python -m pip install jinja2 Made on my side on Ubuntu 22.04

Are you using same commands as him?

---

<div class="post-metadata">

**Author:** ![suneel.mekala](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@suneel.mekala](https://forum.legato.io/u/suneel.mekala)\
**Post date:** [November 25, 2022, 9:07am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/3 "2022-11-25T09:07:41Z")

</div>

> [@Legato vscode install Ubuntu 22.04.1](https://forum.legato.io/t/legato-vscode-install-ubuntu-22-04-1/6301/9):
>
> python-jinja

**Have tried :**  
**pip2 install python-jinja2**  
_DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at [Release process - pip documentation v24.0.dev0](https://pip.pypa.io/en/latest/development/release-process/#python-2-support) pip 21.0 will remove support for this functionality._  
_ERROR: Could not find a version that satisfies the requirement python-jinja2 (from versions: none)_  
_ERROR: No matching distribution found for python-jinja2_

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 25, 2022, 9:16am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/5 "2022-11-25T09:16:43Z")

</div>

Does this help to downgrade the pip version?

> <https://stackoverflow.com/questions/65558034/cant-install-pip-anymore-with-python-2-7>

---

<div class="post-metadata">

**Author:** ![suneel.mekala](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@suneel.mekala](https://forum.legato.io/u/suneel.mekala)\
**Post date:** [November 25, 2022, 9:29am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/6 "2022-11-25T09:29:57Z")

</div>

> [@jyijyi](#):
>
> s this help to downgrade the

Downgraded pip to 20.3.4 but still :  
**pip install python-jinja2**  
_Defaulting to user installation because normal site-packages is not writeable_  
_ERROR: Could not find a version that satisfies the requirement python-jinja2_  
_ERROR: No matching distribution found for python-jinja2_

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 25, 2022, 9:37am UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/7 "2022-11-25T09:37:35Z")

</div>

you can see if this helps:

> <https://stackoverflow.com/questions/32302379/could-not-find-a-version-that-satisfies-the-requirement-package>

---

<div class="post-metadata">

**Author:** ![suneel.mekala](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@suneel.mekala](https://forum.legato.io/u/suneel.mekala)\
**Post date:** [November 25, 2022, 12:26pm UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/9 "2022-11-25T12:26:25Z")

</div>

This is not the solution!

I want to understand : Is leaf designed to work on 64 bit Ubutu? If it is then why there is a dependency on python-jinja2 ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 25, 2022, 12:59pm UTC](https://forum.legato.io/t/error-in-installing-leaf/6352/10 "2022-11-25T12:59:11Z")

</div>

Yes, i can run in ubunt 16 and 18 64 bit pc
