(dependency: string)
| 38 | } |
| 39 | |
| 40 | const makeDependencyCheckCode = (dependency: string) => ` |
| 41 | from importlib import util |
| 42 | dep = '${dependency}'.replace('-', '_') |
| 43 | spec = util.find_spec(dep) |
| 44 | print(spec.origin) |
| 45 | `; |
| 46 | |
| 47 | export async function isInstalled( |
| 48 | pythonPath: string, |