Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to set the Python Interpreter automatically with Pycharm #524

Closed as not planned
@Calcagiara

Description

@Calcagiara

I'm currently using the jetbrains module in a jupyter workspace on coder, with the aim of working remotely with my PyCharm installation.
Although I am able to connect to the workspace, I cannot set the correct Python Interpreter automatically when starting the remote session with PyCharm.

By default, PyCharm was searching in usr/bin/python3.10, which is not the correct path, so I've set the following environment variables in the jupyter template for the location of the interpreter:

env {  name  = "PYCHARM_PYTHON_PATH"  value = "/opt/conda/bin/python3.10"}env {  name  = "PYTHONPATH"  value = "/opt/conda/bin/python3.10"}

With this change, the right interpreter gets found, BUT it doesn't get set, as I receive a message "No Python interpreter configured for the project".

Image

As you can see from the screenshot, the interpreter is not configured, but in the bottom right it is indeed found and, once I set it manually, everything works as expected.

What I want to archieve is to set it automatically when starting the session, because not everyone is aware that they should set the interpreter manually and a user may think there is something wrong. Furthermore, the warning message from PyCharm suggests the wrong path for the interpreter (I guess it uses the default one).

Is there a way to achieve this goal? Am I doing something wrong or is this scenario not supported?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp