Skip to content

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

Closed

Description

@palandovalex

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?

Activity

  1. ccordoba12 commented on Jun 26, 2023

    @ccordoba12
    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

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