title: Emacs: Program named "virtualenv" does not exist
body: <p>I encountered the following error message, when I was in python mode. </p>
  
  <pre><code>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.
  </code></pre>
  
  <p>Then I tried <code>M-x jedi:install-server</code>. Then it complained that </p>
  
  <pre><code>Program named "virtualenv" does not exist
  </code></pre>
  
  <p>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. <strong>Please note that I am using Windows 7</strong></p>
  
  <pre><code>(when (memq window-system '(mac ns))
    (exec-path-from-shell-initialize))
  </code></pre>
  
  <p>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. </p>
  
  <p>Ideally, I am looking for an answer that lists out all the steps I need to setup the virtualenv (on Windows 7) in emacs. </p>