[Bug] Installation process incorrect/not working
Thanks for participating in the TVM community! We use https://discuss.tvm.ai for any general usage questions and discussions. The issue tracker is used for actionable items such as feature proposals discussion, roadmaps, and bug tracking. You are always welcomed to post on the forum first :smile_cat:
Issues that are inactive for a period of time may get closed. We adopt this policy so that we won't lose track of actionable issues that may fall at the bottom of the pile. Feel free to reopen a new one if you feel there is an additional problem that needs attention when an old one gets closed.
Expected behavior
A successful install via pip and being able to use the tvm package.
Actual behavior
Build process seems to finish but with a lot of warnings, and tvm-ffi cannot be installed from /path/to/tvm/build/3rdparty/tvm-ffi via pip. Error: "ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found."
As a sidenote, I've tried 0.21 and 0.22 as well, which I downloaded as tarballs from the github releases. It seems like the build from source process documented on the website no loner applies to those older versions.
Environment
Ubuntu 24.04, tvm version is the latest (cloned the repo on Oct 23, 2025).
Steps to reproduce
Follow the instructions on https://tvm.apache.org/docs/install/from_source.html
Triage
Please refer to the list of label tags here to find the relevant tags and add them below in a bullet format (example below).
- needs-triage
I've found a workaround, that being to use python 3.11, and force the llvmdev version to 15.
I have the same problem even after I change the llvmdev version to 15. My OS is MacOS 26.
I'm new to tvm and I guess I figured out what is going on here. The document said:
Apache TVM relies on the tvm-ffi package to support its python bindings. Therefore, after we finish the build, we need to install the tvm-ffi package.
cd 3rdparty/tvm-ffi; pip install .; cd ..
Actually, the path of 3rdparty/tvm-ffi; is relative to the tvm project path instead of the build directory, which is confusing in this context. Therefore, one shall execute cd /path_to_tvm_project/3rdparty/tvm-ffi; pip install .; cd ...
@hrtan99 that worked haha. Had the same issue and found the solution here