-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 support #212
Comments
This strongly depends on how you manage python versions on your system. I use pyenv, which lets me set the default python versions system-wide, for the current shell, or for specific directories, and Doom is configured to pick this up. So if you have python3 enabled, syntax checking, code evaluation, the repl, etc. should all be using python 3. You'd also be able to see it in the mode-line: If pyenv isn't for you, this should be enough to get everything working (assuming your python executable is named "python3"): (setq python-shell-interpreter "python3"
flycheck-python-pycompile-executable "python3") Let me know if that works for you. |
Conda is also a great way to manage python virtual environments! |
Hi hlissner, the command
did not work for me and my doom emacs still detects python2.7. I don't use pyenv and I just run |
@tiega Can you be more specific? Where does it "show python3"? If in the modeline, then add this to your config: (setq doom-modeline-env-python-executable "python3") See doom-modeline for other config options. |
@hlissner Yes in my modeline it still shows python 2.7.17 even after adding the following to my config: (setq python-shell-interpreter "python3"
flycheck-python-pycompile-executable "python3")
(setq doom-modeline-env-python-executable "python3") Anything else I could try? Thanks! |
This alone worked for me (in vanilla Doom). (after! python
(setq python-shell-interpreter "python3")) If it doesn't work for you, please double check your config. There is likely a conflict. |
Hello.
I was curious if there is any easy way to use Python 3 in place of Python 2.
Thank you
The text was updated successfully, but these errors were encountered: