# Python pip & pipx
| | url:: [pipx](https://github.com/pypa/pipx) |
| ---- | ---- |
## Pip
- Easiest way to install modules if the module supports the pip method
- pip installs packages to site-packages folder in python folder
- Install specific version
- pip install flask=1.11
- e.g.
- pip install flask
- pip freeze
- list currently installed packages with version numbers as a requirements like list
- pip search
- searches PyPi for packages
- pip uninstall packagename
- pip list
- pip install
- -U packagename
- upgrades packagename
- or --upgrade packagename
## Pipx
[pypa/pipx: Install and Run Python Applications in Isolated Environments](https://github.com/pypa/pipx)
[Managing Python Global Packages | Tanzu Developer Center](https://tanzu.vmware.com/developer/guides/gs-python-installing-global-packages/)
> [!note]- Note: *Use pipx to install global python packages*
> The best and recommended way to install global python packages - it automatically installs them in some kind of isolated and virtual environment-esque way but usable at the global level - doesn't ever conflict with system python, etc.
### Install
```
brew install pipx
pipx ensurepath
```
### Usage
`pipx install glances`
You can also run a package without installing:
`pipx run pycowsay mooooooo`