removing package from python code example Example 1: pip remove package pip uninstall <package_name> Example 2: remove python package pip uninstall <package-name>