You are helping the user install pipx and suggesting useful packages to install with it.
Install pipx and discover essential Python CLI tools for development, data science, and productivity. Get isolated environments for each application without dependency conflicts.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user install pipx and suggesting useful packages to install with it.
Explain what pipx is: pipx is a tool to install and run Python applications in isolated environments. Unlike pip which installs packages globally or in the current environment, pipx creates a separate virtual environment for each application.
Check if pipx is already installed:
which pipx
pipx --version
If already installed:
pipx list
Install pipx:
Method 1: Using apt (Ubuntu 23.04+):
sudo apt update
sudo apt install pipx
Method 2: Using pip:
python3 -m pip install --user pipx
python3 -m pipx ensurepath
Method 3: Using Homebrew (if installed):
brew install pipx
Ensure pipx is on PATH:
pipx ensurepath
Then restart shell or:
source ~/.bashrc
Verify installation:
pipx --version
which pipx
pipx list
Explain pipx benefits:
Show basic pipx usage:
pipx install <package> - Install a packagepipx uninstall <package> - Uninstall a packagepipx list - List installed packagespipx upgrade <package> - Upgrade a packagepipx upgrade-all - Upgrade all packagespipx run <package> - Run without installingpipx inject <package> <dependency> - Add dependency to appSuggest essential Python CLI tools:
Development tools:
pipx install black # Code formatter
pipx install flake8 # Linter
pipx install pylint # Code analyzer
pipx install mypy # Static type checker
pipx install isort # Import sorter
pipx install autopep8 # Auto formatter
pipx install bandit # Security linter
Project management:
pipx install poetry # Dependency management
pipx install pipenv # Virtual environment manager
pipx install cookiecutter # Project templates
pipx install tox # Testing automation
Productivity tools:
pipx install httpie # HTTP client (better than curl)
pipx install youtube-dl # Download videos
pipx install yt-dlp # youtube-dl fork (maintained)
pipx install tldr # Simplified man pages
pipx install howdoi # Code search from command line
Data science & analysis:
pipx install jupyter # Jupyter notebooks
pipx install jupyterlab # JupyterLab
pipx install datasette # Data exploration
pipx install csvkit # CSV tools
File & text processing:
pipx install pdfplumber # PDF text extraction
pipx install pdf2image # PDF to image converter
pipx install rich-cli # Rich text in terminal
pipx install glances # System monitoring
Cloud & infrastructure:
pipx install ansible # Automation
pipx install aws-cli # AWS command line
pipx install httpie # API testing
pipx install docker-compose # Docker orchestration
Documentation:
pipx install mkdocs # Documentation generator
pipx install sphinx # Documentation tool
pipx install doc8 # Documentation linter
Testing & quality:
pipx install pytest # Testing framework
pipx install coverage # Code coverage
pipx install pre-commit # Git hooks manager
Suggest packages based on user's interests: Ask the user what they work with:
Then suggest relevant packages.
Install a few essential packages: Recommend installing at minimum:
pipx install httpie # Better HTTP client
pipx install tldr # Quick command help
pipx install black # Python formatter (if they code)
pipx install glances # System monitor
Show how to use pipx run (temporary usage):
# Run without installing
pipx run pycowsay "Hello!"
pipx run black --version
# Useful for one-off tasks
pipx run cookiecutter gh:audreyr/cookiecutter-pypackage
Show how to manage installations:
List all installed apps:
pipx list
pipx list --verbose
Upgrade specific package:
pipx upgrade black
Upgrade all packages:
pipx upgrade-all
Uninstall package:
pipx uninstall black
Reinstall package:
pipx reinstall black
Show how to inject additional dependencies: Some apps need extra packages:
pipx install ansible
pipx inject ansible ansible-lint
pipx inject ansible molecule
Configure pipx:
Check current configuration:
pipx environment
Change installation location (if needed):
export PIPX_HOME=~/.local/pipx
export PIPX_BIN_DIR=~/.local/bin
Show differences between pip and pipx:
pip install <package> - Installs in current environmentpipx install <package> - Installs in isolated environmentTroubleshooting:
Package not in PATH:
pipx ensurepath
source ~/.bashrc
echo $PATH | grep .local/bin
Broken installation:
pipx reinstall <package>
Clean up:
pipx uninstall-all
Advanced usage:
Specify Python version:
pipx install --python python3.11 black
Install from git:
pipx install git+https://github.com/user/repo.git
Install with extras:
pipx install 'package[extra1,extra2]'
Integration with other tools:
pre-commit integration:
pipx install pre-commit
pre-commit install
VSCode integration:
Maintenance commands:
# Update pipx itself
python3 -m pip install --user --upgrade pipx
# Upgrade all installed packages
pipx upgrade-all
# List outdated packages
pipx list --verbose | grep -A 2 "upgrade available"
Provide recommendations:
pipx upgrade-allpipx run to try packages before installingpipx upgrade-all to crontabShow common workflow:
# Install essential tools
pipx install black
pipx install flake8
pipx install mypy
# In your project
cd my-project
black .
flake8 .
mypy .
# No need to activate virtual environment!
pipx ensurepathpipx upgrade-all