[Python] How to setup Emacs to use a given Python virtualenv?

Discussão em 'Python' iniciado por Stack, Junho 12, 2025.

  1. Stack

    Stack Membro Participativo

    I use Emacs for a number of tasks and as I am starting to work with Python I would like to keep using Emacs to code in Python.

    I have set up a virtualenv for Python3, and it is working as desired. I also have Emacs 24.5 installed with the latest version of Emacs Prelude.

    When I edit an Python source file all I expected is working -- code completion, object inspection, etc. -- but for my system wide Python installation, not for the virtual environment I have set up for the project.

    How can I tell Emacs to use the virtual environment for a given project?

    Continue reading...

Compartilhe esta Página