简体   繁体   English

python-shell在emacs中不起作用

[英]python-shell not working in emacs

I am trying to configure emacs for python development. 我正在尝试配置emacs进行python开发。 I have installed the following packages from melpa - python-mode ipython. 我已经从melpa安装了以下软件包-python-mode ipython。

I would like to interactively develop, have the code file open in one frame and the python shell open in another, and have the ability to reload the changes in my code file in the shell. 我想进行交互开发,在一个框架中打开代码文件,在另一框架中打开python shell,并能够在外壳中重新加载我的代码文件中的更改。

As per the article - http://pedrokroger.net/2010/07/configuring-emacs-as-a-python-ide-2/ , I should be able to load my code in the shell using Cc ! 根据文章-http://pedrokroger.net/2010/07/configuring-emacs-as-a-python-ide-2/ ,我应该能够使用Cc将代码加载到shell中! or Mx python-shell. 或Mx python-shell。 However on executing either of this nothing happens ! 但是,执行这两种操作均不会发生!

I have not downloaded the python-mode.el manually, but installed the packages from repos, is that creating a problem ? 我没有手动下载python-mode.el,但是从repos安装了软件包,这是一个问题吗?

I would appreciate help in resolving this issue 希望能为您解决这个问题提供帮助

解决方法是安装python和ipython软件包,然后将python.el文件中提到的配置添加到init.el中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM