Emacs: Program named “virtualenv” does not exist

限于喜欢 提交于 2020-08-02 07:17:10

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/28573295/emacs-program-named-virtualenv-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!