joshcho / ChatGPT.el

ChatGPT in Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatgpt--query: Symbol’s value as variable is void: python-interpreter

jayden-dang opened this issue · comments

i has configurated for python-shell-interpreter is python3, but it not working.

@vugomars Can you elaborate on your fix? I'm experiencing the same issue

@vugomars Can you elaborate on your fix? I'm experiencing the same issue

@C-Hipple This line sets the default Python interpreter for the current Emacs session. It should be the path to your Python 3 executable. To apply the fix, you need to add this line to your Emacs configuration file (e.g., .emacs, init.el) and replace "/usr/local/bin/python3" with the correct path to your Python 3 executable. This should resolve the issue you are encountering.
(setq python-interpreter "/usr/local/bin/python3")
or you can check it in my configuration was published in my github.

Perfect thank you! For anyone coming to this in the future, I was using pyenv so mine was:
(setq python-interpreter "/Users/MYUSERNAME/.pyenv/shims/python")