
Both python --version and python3 --version give Python 3.6.7 On Tue, Apr 2, 2019 at 9:39 AM Hameer Abbasi <einstein.edison@gmail.com> wrote:
Hi Mbeng!
What is the output of python --version and python3 --version? It seems to me that you’re still using Python 2.7.
You may need to use the command python3 rather than python.
Best Regards, Hameer Abbasi
On Tuesday, Apr 02, 2019 at 10:34 AM, Mbeng Tanyi < valentinatessy@gmail.com> wrote: Hello
I still have a problem with this. I am using sphinx1.8.5 and changed the default python version on my computer to be 3.6 but I get the following error on $ make html ;
Traceback (most recent call last):
File "/home/valentina-t/.local/bin/sphinx-build", line 7, in <module> from sphinx.cmd.build import main File "/home/valentina-t/.local/lib/python2.7/site-packages/sphinx/cmd/build.py", line 39 file=stderr) ^ SyntaxError: invalid syntax Makefile:123: recipe for target 'html' failed make: *** [html] Error 1
I googled the error but didn't find anything really useful. I feel it has something to do with python2.7 as part of the path. Suppose I am right, I need help changing it to python3.6 please.
Regards Mbeng Tanyi
On Sun, Mar 31, 2019 at 9:20 PM Matti Picus <matti.picus@gmail.com> wrote:
On 31/3/19 10:56 pm, Mbeng Tanyi wrote:
Hello
I also got an error the first time I tried $ make file as follows:
mkdir -p build/html build/doctrees LANG=C sphinx-build -b html -WT --keep-going -d build/doctrees source build/html /bin/sh: 1: sphinx-build: not found Makefile:123: recipe for target 'html' failed make: *** [html] Error 127
After upgrading to sphinx2 as was suggested here, I still get errors after $ make html :
mkdir -p build/html build/doctrees LANG=C sphinx-build -b html -WT --keep-going -d build/doctrees source build/html Traceback (most recent call last): File "/home/valentina-t/.local/bin/sphinx-build", line 7, in <module> from sphinx.cmd.build import main File
"/home/valentina-t/.local/lib/python2.7/site-packages/sphinx/cmd/build.py",
line 39 file=stderr) ^ SyntaxError: invalid syntax Makefile:123: recipe for target 'html' failed make: *** [html] Error
You need to use sphinx version 1.8.5, and python3.6.
Matti
_______________________________________________
NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion