Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: Program named "virtualenv" does not exist

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.

like image 332
mynameisJEFF Avatar asked Feb 17 '15 23:02

mynameisJEFF


1 Answers

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

like image 72
Swedgin Avatar answered Oct 20 '22 16:10

Swedgin