I'm very new to org-mode and org-babel. After installing oh-my-zsh I noticed that I cannot run the source code in my org files like before.
My code is like follows
#+BEGIN_SRC python :results output :session
# some computations
#+END_SRC
I noticed something went wrong because after I ran the source block code, the output showed the prompt you get when you call python through the terminal, given below.
#+RESULTS:
#+begin_example
WARNING: Python 2.7 is not recommended.
This version is included in macOS for compatibility with legacy software.
Future versions of macOS will not include Python 2.7.
Instead, it is recommended that you transition to using 'python3' from within Terminal.
Python 2.7.16 (default, Feb 29 2020, 01:55:37)
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc- on darwin
Type "help", "copyright", "credits" or "license" for more information.
'org_babel_python_eoe'
16286.2414
#+end_example
(I also got some other problem which got fixed after adding (setq python-shell-completion-native-enable nil)
to the init.el file if that helps)
When everything was working just fine, I just got
#+RESULTS:
16286.2414
Which is what I want.
I then added the following to my init.el file
(setq org-babel-python-command "python3")
After which it is loading an installation of Python 3 BUT it doesn't have the packages I previously made use of in the same file (numpy, scipy etc) when everything was working fine
Any ideas on how to fix this? I also noticed when I run the code block for the first time, the Python and Clang version come up like when you open the Python REPL on the terminal, this did not happen before as well. Which Python installation does org-babel even load?
Uninstall oh-my-zsh didnt work