utils_python_interpreter
get_python_interpreter_v2(python_version)
¶
Return the path to the python interpreter
Parameters:
Name | Type | Description | Default |
---|---|---|---|
version |
Python version |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If the python version requested is not available on the host. |
Returns:
Name | Type | Description |
---|---|---|
interpreter |
str
|
string representing the python executable or its path |
Source code in fractal_server/tasks/v2/utils_python_interpreter.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|