How to force Sphinx to use Python 3.x interpreter

后端 未结 9 920
遇见更好的自我
遇见更好的自我 2020-12-05 14:56

I try to create documentation for a project written with Python 3.x. Sphinx is the tool I want to use and, according to the official site, its last version 1.1.2 is

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 15:04

    On Ubuntu, python3-sphinx is a separate package. In my case, I needed to install python3-sphinx:

    sudo apt-get install python3-sphinx
    

    You can probably run both on a machine, but I just removed the old one:

    sudo apt-get remove python-sphinx
    

    My old makefile worked just fine with my Python 3 code after this.

提交回复
热议问题