I'm kind of a newbie and want to use Python on Emacs.

I noticed that there is a folder rpc-venv here:


Where all python packages are installed.

Why are these files copied here? Why is Emacs not using the already installed files from the system?


  • 2
    smells like a python virtual environment
    – nega
    Dec 7, 2022 at 15:43
  • SO I could delete it? How is the approach to delete the env from Emacs?
    – Adelita
    Dec 7, 2022 at 16:00
  • 1
    no, don't. it's required for elpy.
    – nega
    Dec 7, 2022 at 19:47
  • What I could do is delete the heavy weight, and reinstall elpy with everything whenever I need it.
    – Adelita
    Dec 7, 2022 at 21:17

2 Answers 2


Where all python packages are installed.

No. These are just the Python packages that elpy needs.

This is a Python virtual environment (called “venv” for short). It contains the specific versions of packages needed by one application. Using a venv avoids mixing potentially incompatible versions of packages (the Python ecosystem is huge, and on the whole not great at maintaining backward compatibility).


I'm not an elpy user, so someone else might be able to provide more.

Googling for "elpy" and ".emacs/elpy/rpc-venv", brings us right to the elpy documentation, specifically https://elpy.readthedocs.io/en/latest/concepts.html

Quoting the third paragraph of The RPC Process on that page:

RPC processes are used to provide code completion, documentation and other features. To do so, they use python packages (jedi, yapf, …) that are installed in a dedicated virtualenv (.emacs.d/elpy/rpc-venv by default). Those packages can be updated through the configuration panel (accessible with M-x elpy-config).

So ~/.emacs.d/elpy/rpc-env is a python virtualenv that is required for elpy to do the things it does. Don't delete it, let elpy manage it. If you don't like where it is, it sounds like you can configure its location.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.