Python-make: ../bin/sphinx-Build: The command does not find a solution

Source: Internet
Author: User

I used easy_install pyquery to install the pyquery framework, but found no documentation, so I went to its website to get a copySource codeFortunately, there is a Docs File in it. After reading it, it is not compiled yet, so enter make in the terminal:

 
Huangjacky @ huangjacky-LAPTOP :~ /Program/code/python_framework/pyquery/docs $ make please use 'make <target> 'where <target> is one of HTML to make standalone HTML files pickle to make pickle files JSON make JSON files htmlhelp to make HTML files and a HTML Help Project latex to make latex files, you can set paper = A4 or paper = letter changes to make an overview over all changed/added/deprecated items linkcheck to check all external links for Integrity

If you want to include parameters, we need to output HTML, So enter make HTML:

 
Huangjacky @ huangjacky-LAPTOP :~ /Program/code/python_framework/pyquery/docs $ make htmlmkdir-P _ build/html _ build/doctrees .. /bin/sphinx-Build-B HTML-D _ build/doctrees. _ build/htmlmake :.. /bin/sphinx-Build: Command not found make: *** [HTML] Error 127

the prompt "Sphinx-build" is not found, indicating what it is used. We haven't installed it. Google: It turns out to be a python library. So we enter sudo easy_install sphinx on the terminal, the installation is successful. Input make HTML in the terminal again, but the error is still the same. Read it again .. /bin/sphinx-build. It seems that it regards people's sphinx as their own folder. Well, we can directly use the sphinx-build command to generate HTML for the docs folder and enter it in the terminal: directory output by the docs folder to be compiled by sph‑build

Huangjacky @ huangjacky-LAPTOP :~ /Program/code/python_framework/pyquery $ sphtasks-build docs htmlmaking output directory... running sph1_v1.1.3loading pickled environment... not yet createdno builder selected, using default: htmlbuilding [HTML]: targets for 11 source files that are out of dateupdating environment: 11 added, 0 changed, 0 removedtraceback (most recent call last): file "/usr/local/lib/python2.7/dist-packages/Sphinx-1.1.3-py2.7.egg/sphinx/EXT/autodoc. PY ", line 321, in import_object _ import _ (self. modname) file "/usr/local/lib/python2.7/dist-packages/pyquery-1.2.1-py2.7.egg/pyquery/Ajax. PY ", line 6, in <module> from webob import request, responseimporterror: No module named webobreading sources... [100%] traversing/home/huangjacky/Program/code/python_framework/pyquery/docs/ajax.txt: 4: Warning: autodoc can't import/find module 'pyquery. ajax ', it reported error: "No module named webob", please check your spelling and SYS. path/home/huangjacky/Program/code/python_framework/pyquery/docs/ajax.txt: 54: Warning: don't know which module to import for autodocumenting U 'pyquery' (try placing a "module" or "currentmodule" Directive in the document, or giving an explicit Module name) /usr/local/lib/python2.7/dist-packages/pyquery-1.2.1-py2.7.egg/pyquery. PY: docstring of pyquery.pyquery.pyquery.html: 9: Warning: inline literal start-string without end-string.looking for now-outdated files... none foundpickling environment... donechecking consistency... donepreparing documents... donewriting output... [100%] traversing writing additional files... genindex Py-modindex searchcopying static files... warning: html_static_path entry '/home/huangjacky/Program/code/python_framework/pyquery/docs/_ static' does not existdonedumping search index... donedumping object inventory... donebuild succeeded, 4 warnings.

A large prompt is output, but the prompt build succeeded is displayed. Haha, the HTML folder has been generated in the same directory as docs. Done. As for what pyquery does, you can refer to it here. In the future, I will write several examples to explain its usage.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.