簡體   English   中英

無法配置 emacs 使用 python3

[英]Unable to configure emacs to use python3

我在 ubuntu 18.04 上使用 emacs 25.2.2。 我想在 emacs 中使用 python3; 但是它帶有 python 2.7,我找不到如何重新配置。 說使用 Mx customize-variable RET python-shell-interpreter RET 的答案1 Mx customize-variable RET python-shell-interpreter RET doesn't work for me, python-shell-interpreter。

有什么想法嗎? 謝謝 - 萊恩

你能檢查一下你是否安裝並啟用了 Elpy嗎? 正如他們自述文件中所建議的那樣,您可以通過在 emacs 配置中的某處包含以下內容來實現此目的

(use-package elpy
  :ensure t
  :init
  (elpy-enable))

這應該允許您設置 python-shell-interpreter 變量。 希望這可以幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM