在“Emacs 24.3.1 for Windows”(由供应商提供的Python2.6)中,“run-python”失败 [英] 'run-python' failing on Emacs 24.3.1 for Windows, custom vendor-supplied Python2.6

查看:229
本文介绍了在“Emacs 24.3.1 for Windows”(由供应商提供的Python2.6)中,“run-python”失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用Python 2.6的自定义版本进行一些工作,并希望为此使用emacs。在更多的unixy平台上,我从来没有遇到过基本的python模式的问题,但是现在我遇到一个问题,当我尝试使用 Mx python 命令。

I'm doing some work with a custom version of Python 2.6 on Windows, and would love to use emacs for this purpose. On more unixy platforms, I've never had any issue with the basic python-mode stuff, but now I'm encountering a problem when I try to use the M-x run-python command.

我的自定义Python在路径上(即可以键入 python 从windows命令提示符并获取相应的版本)。不幸的是,当我尝试从emacs run-python 启动它时,我的* Messages *缓冲区中会出现以下错误:

My custom Python is on the path (i.e. can type python from a windows command prompt and get the appropriate version). Unfortunately, I simply get the following error in my *Messages* buffer when attempting to start it with run-python from emacs:

apply: Spawning child process: invalid argument

有人运行一个类似的python配置,可以揭示这一点吗?可以根据需要发布任何其他配置详细信息。

Is anyone running a similar python config that can shed light on this? Happy to post any other config details as needed.

推荐答案

您可以尝试 Cu Mx run-python ,这样您可以选择要运行的python二进制文件的路径。

You could try C-u M-x run-python, which gives you the option of selecting the path of the python binary you want to run.

或者,如果要启动它例如,通过调用(run-python/ usr / bin / python3)可以实现Elisp。

Alternatively, if you would like to start it using Elisp, that can be achieved by calling (run-python "/usr/bin/python3") for python3, for example.

这篇关于在“Emacs 24.3.1 for Windows”(由供应商提供的Python2.6)中,“run-python”失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆