How to make sphinx look for modules in virtualenv while building html?

前端 未结 3 1177
梦如初夏
梦如初夏 2021-01-30 10:42

I want to build html docs using a virtualenv instead of the native environment on my machine.

I\'ve entered the virtualenv but when I run make html I get e

3条回答
  •  被撕碎了的回忆
    2021-01-30 10:59

    The problem is correctly spotted by Mathijs.

    $ which sphinx-build
    /usr/local/bin/sphinx-build
    

    I solved this issue installing sphinx itself in the virtual environment.

    With the environment activated:

    $ source /home/migonzalvar/envs/myenvironment/bin/activate
    $ pip install sphinx
    $ which sphinx-build
    /home/migonzalvar/envs/myenvironment/bin/sphinx-build
    

    It seems neat enough.

提交回复
热议问题