Hi Ron It's best to install Python modules for some particular project in a virtual environment. Try this:
brew install pyenv-virtualenv cd your-project-directory # create a subdirectory for virtual environment virtualenv .venv # activate it in current terminal session source .venv/bin/activate # check that we're now using local Python: which python python --version # if you have your project's requirements in a file, install them from it: pip install -r requirements.txt # or just install sphinx pip install sphinx # now it should work python -msphinx.ext.intersphinx build/html/objects.inv On Thu, Feb 11, 2021 at 7:30 AM Ron Stone <[email protected]> wrote: > Hi, > > I am not able to dump the contents of an objects.inv file as described at > https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html: > > $ python -msphinx.ext.intersphinx build/html/objects.inv > > (snip) Error while finding module specification for > 'sphinx.ext.intersphinx' (ModuleNotFoundError: No module named 'sphinx') > > I get the same module not found error on two machines > > - sphinx on macOS installed via: > brew install sphinx > - sphinx on Win10 installed via: > pip install -U sphinx > > Sphinx otherwise works as expected. > > Any help with this appreciated. > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/84a82099-3c0a-4315-8c10-f0ae81c84716n%40googlegroups.com > <https://groups.google.com/d/msgid/sphinx-users/84a82099-3c0a-4315-8c10-f0ae81c84716n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best regards, Nick Volynkin Technical writer, Plesk <https://www.plesk.com/> Program commitee member, KnowledgeConf <https://knowledgeconf.ru/en/> Community moderator, Stack Overflow in Russian <https://ru.stackoverflow.com/> -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAK1mEzruY-cShXEWe5p9b7gQi4Ay55Zr-kgvdjDPi%2BLA8VC2qw%40mail.gmail.com.
