Why use pip over easy_install?

Pip is generally preferred over easy_install because it offers a number of features that easy_install does not, including better package management and more user-friendly command options.

For example, with pip, you can specify a specific version of a package to install, while with easy_install, you can only specify the package name. Additionally, pip allows you to easily uninstall packages and manage package dependencies, while easy_install does not.

Here is an example of how to use pip to install a package:

pip install package_name

You can also install a specific version of a package using pip:

pip install package_name==version_number

You can also use pip to install package from a requirements.txt file

pip install -r requirements.txt