# \[DOC\] Building documentation locally

**URL:** <https://discuss.tvm.apache.org/t/doc-building-documentation-locally/18927>\
**Category:** Development\
**Created:** [February 12, 2026, 4:02am UTC](https://discuss.tvm.apache.org/t/doc-building-documentation-locally/18927 "2026-02-12T04:02:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ruslo](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/ruslo/32/6158_2.png) [@ruslo](https://discuss.tvm.apache.org/u/ruslo)\
**Post date:** [February 12, 2026, 4:02am UTC](https://discuss.tvm.apache.org/t/doc-building-documentation-locally/18927/1 "2026-02-12T04:02:01Z")

</div>

As mentioned in [[DOC] Fix RST syntax by ruslo · Pull Request #18732 · apache/tvm · GitHub](https://github.com/apache/tvm/pull/18732#issuecomment-3888156954) I was not able to build the documentation locally on my Ubuntu 24.04

Trying instructions from [tvm/docs at 9eac0e1635c83904aedd1100c9471c608d89a7ad · apache/tvm · GitHub](https://github.com/apache/tvm/tree/9eac0e1635c83904aedd1100c9471c608d89a7ad/docs#build-locally)

First, Docker-based leads to an error:

```auto
$ USE_SCCACHE=0 DEBUG=1 python tests/scripts/ci.py docs --cpu

+ python3 -m pip install Sphinx==4.2.0 tlcpack-sphinx-addon==0.2.1 image==1.5.33 git+https://github.com/sphinx-gallery/sphinx-gallery.git@6142f1791151849b5bec4bf3959f75697ba226cd sphinx-rtd-theme==1.0.0 matplotlib==3.3.4 commonmark==0.9.1 Pillow==8.3.2 autodocsumm==0.2.7 docutils==0.16

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL'
Check the permissions.

```

Second, native, leads to an error:

```auto
$ ./docker/bash.sh ci_gpu -c 'python3 -m pip install --quiet tlcpack-sphinx-addon==0.2.1 && python3 -m pip freeze'

Error: Unknown flag: -c

```

I found a few issues in the documentation and just want to check the fixes before opening a pull request. So any instructions that allow me to do that will do the trick. Hints are welcome 🙏

---

_[View the full topic](https://discuss.tvm.apache.org/t/doc-building-documentation-locally/18927)._
