š node [[wrong version of python in org code blocks]]
Wrong version of Python in org code blocks
I was trying to use the statistics
module.
But it was telling me it wasn't found.
It's a new thing in Python3.
I thought I had told org to use Python3 with python-shell-interpreter
.
But no.
I checked with
import platform
return platform.python_version()
and it was still version 2.
Turns out you also need: org-babel-python-command
set to Python3 too.
See: python - org-mode: how can i point to python3.5 in my org-mode doc? - Emacs Sā¦
š stoas
- public document at doc.anagora.org/wrong-version-of-python-in-org-code-blocks
- video call at meet.jit.si/wrong-version-of-python-in-org-code-blocks
ā„± context
š full text search for 'wrong version of python in org code blocks'