Emacs:名为“ virtualenv”的程序;不存在 [英] Emacs: Program named "virtualenv" does not exist

查看:76
本文介绍了Emacs:名为“ virtualenv”的程序;不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我处于python模式时,遇到以下错误消息。

 错误(jedi):无法启动Jedi EPC服务器。 
***您可能需要运行 M-x jedi:install-server。 ***
这可以解决问题,尤其是自Jedi.el安装或更新以来尚未运行
命令,并且服务器抱怨
Python模块导入时。

然后我尝试了 Mx jedi:install-server 。然后它抱怨

 名为 virtualenv的程序不存在
请注意,我正在使用Windows 7

 (当(memq窗口系统'(mac ns ))
(执行程序从外壳初始化路径))

尝试设置Windows环境下在emacs中关闭jedi已经给我造成了很多时间和麻烦,我只想一劳永逸地完成此工作。



理想情况下,我正在寻找一个答案,该答案列出了在emacs中设置virtualenv(在Windows 7上)所需的所有步骤。

解决方案

我遇到了同样的问题,但是在Windows 10上,我可以通过以下步骤操作它:



在终端(cmd / powershell /..):

  pip install virtualenv 

之后,在emacs中:

  Mx jedi:安装服务器

Emacs可以安装服务器。



仅供参考,我正在运行python3.5,pip版本19.2.3,emacs26.2,W10


I encountered the following error message, when I was in python mode.

Error (jedi): Failed to start Jedi EPC server.
*** You may need to run "M-x jedi:install-server". ***
This could solve the problem especially if you haven't run the command yet
since Jedi.el installation or update and if the server complains about
Python module imports.

Then I tried M-x jedi:install-server. Then it complained that

Program named "virtualenv" does not exist

Now from the results I got from google, I added the following line to my emacs.d/init.el file, but still I am getting the same error. Please note that I am using Windows 7

(when (memq window-system '(mac ns))
  (exec-path-from-shell-initialize))

Trying to set up jedi in emacs under Windows environment has caused me so much time and trouble already, I just want to complete this once and for all.

Ideally, I am looking for an answer that lists out all the steps I need to setup the virtualenv (on Windows 7) in emacs.

解决方案

I had the same problem but on Windows 10. I got it working by these steps:

In terminal (cmd/powershell/..):

pip install virtualenv

After that, in emacs:

M-x jedi:install-server

And Emacs could install the server.

FYI, I'm running python3.5, pip version 19.2.3, emacs26.2, W10

这篇关于Emacs:名为“ virtualenv”的程序;不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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