Install Homebrew in Home directory

By May 2, 2016Other

If you own a mac, chances are that you already know about Homebrew. Recently I was working on a Mac and had to install python in it but the problem is I was not an administrator. So here is the work around that I found.

Install Home Brew in your home directory.

$ mkdir Code
$ cd Code

Now install Homebrew in this directory by using the following commands.
$ git clone

Next, add Homebrew to your path

$ export PATH=${HOME}/Code/homebrew/bin:${PATH}

Keep in mind that if you close the terminal window, you should again export the PATH if you want to use ‘brew’ command.

Now to install Python simple run the following command.

$ brew install python3

Now wait for the magic to happen.

Leave a Reply