Learn how to use pip, Python’s package manager, to install, update, and uninstall packages easily.
To install a package, use: pip install package_name Example: pip install requests
To update an installed package to the latest version, run: pip install --upgrade package_name Example: pip install --upgrade numpy
To uninstall a package, use: pip uninstall package_name Example: pip uninstall requests
To see a list of installed packages, run: bash Copy code pip list This shows all installed packages with their versions.
Check which packages are outdated with: pip list --outdated This lists all packages that have newer versions available.