0.2.2 • Published 10 months ago

find-python-installations v0.2.2

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
10 months ago

find-python-installations

This package finds all Python installations on the system. It looks for executables named py, python, python* or python*.* in $PATH as well as the virtual environments reported by conda env list. Symbolic links pointing to Python executables are also returned.

Installation

$ npm install find-python-installations

Usage

import { findPythonInstallations } from 'find-python-installations';

await findPythonInstallations()
// =>
{
  '/opt/homebrew/bin/python3': {
    id: '/opt/homebrew/bin/python3',
    info: {
      architectures: ['arm64'],
      isVirtualEnv: false,
      supportsVirtualEnv: true,
      version: [3, 11, 3]
    },
    leaf: true,
    path: '/opt/homebrew/bin/python3',
    symlink: true
  },
  ...
}
0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago