我使用 emacs 作为 python IDE。我安装了 flymake,但是,每当我使用 .py 文件时,它都会显示以下错误
错误(flymake):Flymake:无法使用 args 启动语法检查进程“pycheckers”(string-operations_flymake.py):正在搜索程序:没有这样的文件或目录,pycheckers。Flymake 将关闭
我对 flymake 的 .emacs 配置如下:
;; flymake
(add-to-list 'load-path "~/.emacs.d/vendor")
(add-hook 'find-file-hook 'flymake-find-file-hook)
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pycheckers" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))
(load "~/.emacs.d/vendor/flymake-cursor.el")
(global-set-key [f10] 'flymake-goto-prev-error)
(global-set-key [f11] 'flymake-goto-next-error)
有关如何解决此问题的任何建议