python reinstall package code example Example: pip reinstall pip install --upgrade --force-reinstall <package>