Skip to content

How do you specify a path to a virtualenv? #660

@ryankask

Description

@ryankask

I'm trying to migrate my existing emacs setup to use python-language-server via eglot. I am currently using emacs with the emacs-jedi package. I'm able to pass a path to a virtualenv that ends up instantiating a Jedi environment like this: jedienv = jedi.create_environment(venv, safe=safe)

Is there a way to run python-language-server installed in one virtualenv (one that I use for packages requires across projects) but use a different one (ie the project virtualenv) for completion like is done above?

I've read through the existing issues but I'm not sure of the answer (#143, for example). Is it to set VIRTUAL_ENV when running pyls? Is there a way to pass a path instead like described above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions