You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How do I configure the python version that the code is written for? #398
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.
Activity
ccordoba12 commentedon Jun 26, 2023
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
--hostand--portoptions 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.