Brew Download Specific Version

Posted on by

Game 62: august 14 2015 the initials game show. Python is very popular programming and scripting language. It provides useful modules and libraries but also there is a lot of popular 3rd party library. Pip is the command and tools used to install, update and remove 3rd party packages. In this tutorial, we will learn how to install pip and some useful information.

Download your desired version; Unpack it (tar -zxvf helm-v3.0.0-linux-amd64.tar.gz) Find the helm binary in the unpacked directory. Members of the Helm community have contributed a Helm formula build to Homebrew. This formula is generally up to date. Brew install helm (Note: There is also a formula for emacs-helm, which is a different. # Install specific version of a Homebrew formula # # Usage: brewv.sh formulaname desiredversion # # Notes: # - this will unshallow your brew repo copy. It might take some time the first time # you call this script # - it will uninstall (instead of unlink) all your other versions of the formula. # Proper version management is out of scope of. Install a specific version of a package can be useful to avoid the bugs when you know which version of a package is concerned and make sure to disable a specific package from updating by holding the packages so it won't get automatically updated when you run 'apt-get upgrade'. To handle Debian-based system packages, we use the apt-get command.

Check and Display Python Version

Before installing the pip we have to be sure that Python is installed. Also, the version of the Python is important because pip will be installed according to this Python version.

Brew Download Specific Version

We can see that both PYthon2 and PYthon3 is installed. So we can use installation commands for both Python2 and Python3. The python2 version is Python2.7.16 and Python3 version is Python3.6.8 .

Install Pip with easy_install On MacOS

easy_install is a Python module bundled with setuptools which gives us the ability to download, build, install, and manage Python packages. Before pip easy_install was the standard package manager for the Python. We can install pip with the easy_install command like below.

If the pip is already installed we can also upgrade the existing pip installation with the easy_install like below. We will use the pip command because it installed already and provide the --upgrade option with the package name which is also pip.

Brew Download Specific Version

Install Pip with get-pip.py On MacOS

get-pip.py is another way to install pip in MacOS. get-pip.py is a Python script that will simply download and install the Pip package for Python. First, we will download the get-pip.py script with the curl command. We will provide the URL with the -o option where we will set the name of the downloaded get-pip.py file name.

Check Brew Version

AND then we will call the get-pip.py with the Python interpreter. This will run the get-pip.py file Python codes which will simply install the pip for the macOS or OS X.

Brew download specific version download

Install Pip with brew On MacOS

Brew Install Specific Version Package

Homebrew is the package management tool for the macOS. We can use Homebrew in order to install Python and pip. pip is provided with the python package. We will use brew command with the install command like below.

If there are problems related to the pip usage we may need to relink the python with the following command.

Brew List Version

Check and Display Pip Version

We can check installed pip version with the -V or --version option like below.

Brew list version

Brew Install Specific Version

We can see that Python2 pip version is pip 9.0.1 and Python3 pip version is pip 9.0.1 . They are the same version for both Python2 and Python3. This is because to prevent version conflicts and synchronize the feature development of the pip command for both Python versions.