A PowerShell script for installing pipx with pipx
Download pipx-bootstrap.ps1
and run it:
(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):
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.,
.\pipx-bootstrap.ps1 --verbose --force
is equivalent to
pipx install pipx --verbose --force
The script uses python3
binary by default. It can be overridden with the environment variable PYTHON_BIN
:
$Env:PYTHON_BIN = 'X:\path\to\python'
.\pipx-bootstrap.ps1