emacs24をWindowsにインストールしC:\Program Files(x64)
、python2.7をC:\Python27
私はPythonモードをインストールして、emacsからインタープリターにコマンドを送信しようとしました。私のinit.elファイルUsers/myname/.emacs.d
:
(setq py-install-directory "~/.emacs.d/python-mode.el-6.1.1")
(add-to-list 'load-path py-install-directory)
(require 'python-mode)
(setq py-shell-name "C:\Python27\python.exe")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(py-shell-name "C:\\Python27\\python.exe"))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
私はPythonモードファイルを次の場所に置きました:C:\Users\myname\.emacs.d\python-mode.el-6.1.1
メニューでPyShell>DefaultIntepreterオプションを選択すると、インタラクティブなPythonセッションをバッファーに形成できますが、.pyファイルを開いて、メニューPyExec> Execute Statementに移動するなどしてhellowワールドを実行しようとすると、エラーが発生します。この性質の:
Opening output file: no such file or directory, c:/Users/Ben/AppData/Local/Temp/C-/Python27/python.exe-705218Y.py
Pythonコードを編集して、このエラーなしで別のバッファーのPythonインタープリターに行を送信できるように設定するにはどうすればよいですか?