Skip to content

Is it possible to select Python interpreter? #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pplonski opened this issue Nov 23, 2021 · 1 comment
Closed

Is it possible to select Python interpreter? #120

pplonski opened this issue Nov 23, 2021 · 1 comment

Comments

@pplonski
Copy link

Can I have one instance of pylsp and several virtual envs and just select the env that I would like to work with? Is there any configuration for this?

Or do I need to install pylsp on each venv?

@ccordoba12
Copy link
Member

Is there any configuration for this?

Yes, there is. All our configurations options are documented here:

https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md

The one you're looking for is pylsp.plugins.jedi.environment. You need to set your Python environment executable (i.e. /path/to/myenv/python) on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants