[VTA]Installation &Testing

Hi I am installing VTA following the instructions from https://tvm.apache.org/docs//vta/install.html#vta-fpga-toolchain-installation and when get to test my VTA Simulation Setup, I got an error

$ python vta/tests/python/integration/test_benchmark_topi_conv2d.py

Traceback (most recent call last): File “vta/tests/python/integration/test_benchmark_topi_conv2d.py”, line 27, in import tvm File “/home/sophia/tvm/python/tvm/init.py”, line 25, in from ._ffi.base import TVMError, version File “/home/sophia/tvm/python/tvm/_ffi/init.py”, line 27, in from . import _pyversion File “/home/sophia/tvm/python/tvm/_ffi/_pyversion.py”, line 26, in raise Exception(PY3STATEMENT) Exception: The minimal Python requirement is Python 3.6

But when I install the newest python by

$ sudo apt-get install python3.7

Reading package lists… Done Building dependency tree
Reading state information… Done python3.7 is already the newest version (3.7.5-2~18.04). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

This error still occurs. Could anyone give me some help please? I build TVM on ubuntu 18.04LTS

I think the command python is aliased to Python 2.7. What happens if you do which python? This should give you the alias of the python command. For instance, in my case is /usr/bin/python. Then you can write ls -al /usr/bin/python to see where the symbolic link points to.

A simple workaround is to run

$ python3.7 vta/tests/python/integration/test_benchmark_topi_conv2d.py

Alternatively, you can create a new link to the new Python version.