I've got python 3.6 in this directory:
D:\Python36 How can I set in .emacs path to python 3.6 interpreter?
(setq exec-path (append exec-path '("d:/Python36/"))) exec-path too generic? 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. 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.
Pathenvironment 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).