public class PythonVersionFactory extends Object
| Constructor and Description |
|---|
PythonVersionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static PythonVersion |
fromInterpreter(ProcessExecutor processExecutor,
Path pythonPath) |
static PythonVersion |
fromString(String versionStr) |
public static PythonVersion fromString(String versionStr)
PythonVersion from a version string (e.g. "CPython 2.7").public static PythonVersion fromInterpreter(ProcessExecutor processExecutor, Path pythonPath) throws InterruptedException
PythonVersion extracted from running the given interpreter.InterruptedException