Reputation: 2297
When I do `M-x run-python' it opens an interpreter but it is python 2.7.
I would like the command `M-x run-python' to open it as is in my anaconda3 installation. I want to do this, as none of my packages are importable currently. So I followed advice from "this answer" and added the following to my /.emacs.d/init.el file.
(setq python-python-command "/home/eghx/anaconda3/bin/python")
It doesn't work. I only end up opening python 2.7
Furthermore, anaconda's python works with spyder (IDE), works in my terminal and everywhere else except by default with emacs.
As you can tell I am a noob and would greatly appreciate any help. Thanks
Ubuntu 16 recent install, Emacs 27.0.5, Anaconda 3
Upvotes: 0
Views: 1082
Reputation: 824
check the path to Python3 or better to IPython3 in the shell:
$ which python3
add the path to init file:
(setq python-shell-interpreter "/path/to/ipython3")
Upvotes: 1