1

how do I change the version of Python that emacs uses in the python-mode to the latest version that I just installed ?

I tried setting the PATH in my init.el file to the path where the latest version of python resides but its not working.

0

2 Answers 2

1

Set the variable python-python-command. This can be done via customize:

  1. M-x customize-option RET python-python-command RET
  2. Change the value to point to the appropriate binary.
Sign up to request clarification or add additional context in comments.

2 Comments

Similar to this problem, I tried using the sql-mysql mode but emacs is unable to find the file/directory mysql. However, I can access it from the terminal. How do I point mysql in emacs to /usr/local/mysql/bin/mysql ?
That sounds more like a PATH issue, but it looks like you can customize a similar variable: sql-mysql-program.
0

PATH is only searched when a program is launched via the shell.

For programs that are launched directly by Emacs (for example, via call-process), it's the exec-path variable that is searched.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.