I've got python 3.6 in this directory:
D:\Python36
How can I set in .emacs path to python 3.6 interpreter?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this community(setq exec-path (append exec-path '("d:/Python36/")))
python-shell-interpreter
is the variable you are looking for. You can set it using
(setq python-shell-interpreter "D:\Python36")
Add this to your .emacs
and reload python process.
D:/Python36/python
. Backslash has a special meaning in Emacs, so if you want to use them, you have to escape them first (with, incidentally, a backslash) like so: C:\\Python36\\python
. As you can see, it's easier to just use forward slashes instead.
Path
environment variable. That's not really an Emacs question. It seems you are on MS Windows. Go to Control Panel > System > Advanced System Settings > Environment Variables, and update variablePath
(or add the var if not there).