/usr/bin/python: No module named tvm.exec

I followed the tutorial mentioned on the website for “Build TVM Runtime on Device” on RaspberryPi

I added the line export PYTHONPATH=$PYTHONPATH:~/tvm/python to my ~/.bashrc file. I am still receiving the error when I run this command:

python -m tvm.exec.rpc_server --host 0.0.0.0 --port=9090

/usr/bin/python: No module named tvm.exec

I am not sure what I am doing wrong. Would really appreciate some help.

Thanks.

Hi @Doofenshmirtz97,

Can you try modifying your PYTHONPATH assignment not to use the shell expansion with ~ such as, I believe: PYTHONPATH=$PYTHONPATH:/home/tvm/python

Optionally you could also try using tlcpack (https://tlcpack.ai) and a regular virtualenv.

Hope that helps.

1 Like