# Root in combination with Vitis-AI, python version mismatch

**URL:** <https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [November 7, 2022, 2:42pm UTC](https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255 "2022-11-07T14:42:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@steven1](https://root-forum.cern.ch/u/steven1)\
**Post date:** [November 7, 2022, 2:42pm UTC](https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255/1 "2022-11-07T14:42:03Z")

</div>

_ROOT Version:_ 6.16.00  
_Platform:_ Ubuntu 20.04LTS  
_Compiler:_ GCC9.4

* * *

Does someone have experience working with Vitis-AI in combination with ROOT? Currently I am having trouble installing ROOT in the conda environment of Vitis-AI version 2.5. The goal is to run ROOT on the conda environment of Vitis-AI with pytorch to open .root files.  
**The problem** is that the Vitis conda environment only works for python version 3.7, and I can not find a pre-compiled version of ROOT for python 3.7. Any suggestions on what pre-compiled version to use, or what to do next?

Kind regards, Steven

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [November 9, 2022, 9:47am UTC](https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255/2 "2022-11-09T09:47:41Z")

</div>

Hi @steven1 ,

and welcome to the ROOT forum!

There is a conda package for ROOT on conda-forge, so one way to check whether there is a combination of packages that work for you is to try and create a conda environment from scratch with all packages that you need, e.g. with (`mamba` is just `conda` with a faster dependency solver, highly recommended) `mamba create -n testenv -c conda-forge root vitis-ai`.

A “bazooka solution” is to activate the conda environment and then [build ROOT from source](https://root.cern/install/build_from_source/) within the environment – that will give you a ROOT build that is compatible with the conda environment.

I hope this helps!  
Enrico

---

<div class="post-metadata">

**Author:** ![steven1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e36b37/32.png) [@steven1](https://root-forum.cern.ch/u/steven1)\
**Post date:** [November 9, 2022, 10:31am UTC](https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255/3 "2022-11-09T10:31:17Z")

</div>

Hi Enrico,

Thank you for your response! First I will try to create a new conda environment and add both ROOT and Vitis-AI. If that doesn’t work the building from source will have to do. I will let you know if building a new conda environment works!

kind regards,

Steven
