【发布时间】:2017-06-30 01:24:34
【问题描述】:
我已经开始使用 Spacemacs 来编辑 python 文件并使用 org-mode,但现在我想从 Spacemacs 运行 python 而不是运行 Anaconda Prompt。
我已经在.spacemacs 文件中用SPC f e d 写了这个:
(defun dotspacemacs/user-init ()
"Initialization function for user code.
It is called immediately after `dotspacemacs/init', before layer configuration
executes.
This function is mostly useful for variables that need to be set
before packages are loaded. If you are unsure, you should try in setting them in
`dotspacemacs/user-config' first."
(setq python-shell-interpreter "C:/Users/Mahesvara/Documents/Personal_Documents/Programs/Anaconda3/python.exe")
)
但是当我尝试使用C-c C-p 运行脚本时,会出现以下错误:Searching for program: No such file or directory, python
【问题讨论】:
标签: python emacs anaconda spacemacs