Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/un-def/pipx-bootstrap.ps1

A PowerShell script for installing pipx with pipx
https://github.com/un-def/pipx-bootstrap.ps1

environment-manager pipx python venv

Last synced: 23 days ago
JSON representation

A PowerShell script for installing pipx with pipx

Awesome Lists containing this project

README

        

# pipx-bootstrap.ps1

A PowerShell script for installing pipx with pipx

## Other Versions

* [Python](https://github.com/un-def/pipx-bootstrap.py)
* [POSIX Shell](https://github.com/un-def/pipx-bootstrap.sh)

## Usage

Download `pipx-bootstrap.ps1` and run it:

```powershell
(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/un-def/pipx-bootstrap.ps1/master/pipx-bootstrap.ps1', 'pipx-bootstrap.ps1')
.\pipx-bootstrap.ps1
```

or (in one step):

```powershell
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/un-def/pipx-bootstrap.ps1/master/pipx-bootstrap.ps1')
```

Script arguments are passed to `pipx install pipx` command, e.g.,

```powershell
.\pipx-bootstrap.ps1 --verbose --force
```

is equivalent to

```powershell
pipx install pipx --verbose --force
```

The script uses `python3` binary by default. It can be overridden with the environment variable `PYTHON_BIN`:

```powershell
$Env:PYTHON_BIN = 'X:\path\to\python'
.\pipx-bootstrap.ps1
```