Skip to content

How do I configure the python version that the code is written for? #398

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
palandovalex opened this issue Jun 26, 2023 · 1 comment
Closed

Comments

@palandovalex
Copy link

I use my home pc to develop, bun on server has lower version of interpretter. Can i strictly set pylsp to use python 3.8 insted of python 3.10?

@ccordoba12
Copy link
Member

Hey @palandovalex, I think the only way to do that is for you to use a virtual environment with the Python version you want to use, install this server on that env, start it with the --host and --port options and then connect your editor/IDE to it. The last step depends on your editor/IDE, so we can't provide more details about it.

Otherwise, pylsp will use the Python version of the env in which it's installed.

Let us know if that was helpful.

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