dstackai / dstack

dstack is an open-source alternative to Kubernetes, designed to simplify development, training, and deployment of AI across any cloud or on-prem. It supports NVIDIA, AMD, and TPU.
https://dstack.ai/docs
Mozilla Public License 2.0
1.42k stars 142 forks source link

Detect the default Python version in CLI, not in dstack-server #1461

Open jvstme opened 3 months ago

jvstme commented 3 months ago

Problem

If the user omits the python property in the run configuration, dstack is supposed to use the Python version installed in the user's environment. This allows dstack environments to be more similar to users' local environments.

However, dstack currently detects the Python version in dstack-server. While this works for the simplest setups, in many setups dstack-server runs separately from users' environments, so users actually get the Python version from the dstack-server environment, not their local environment.

Solution

Detect the default Python version in dstack CLI, not in dstack-server.

easedeath commented 1 week ago

Hi can i work on this issue?

peterschmidt85 commented 1 week ago

Hi can i work on this issue?

@easedeath You don't need to ask. If you know how to fix this, just send a PR! Thank you