Skip to content Skip to sidebar Skip to footer

Wget Is Not Recognized As A Command Even Though It Is Installed

I know I am doing something really stupid here but I have tried the things I can think of. Here is the relevant portion of my session: $ wget http://pjmedia.com/instapundit/ -bas

Solution 1:

Use some OS X package manager like Homebrew (brew) or MacPorts, as pip is used for python modules:

brew install wget

Solution 2:

Wget the shell command is probably easiest to get on OSX by using Homebrew, and then running brew install wget.

What you've got there is the python module wget, which follows the same name. It can be used by running python -m wget [options] <URL>, where your options are to supply an output file name with -o. You could always alias this to wget in your .bashrc!

Solution 3:

pip installs Python modules. In some cases that includes installing a command-line utility as well, but as far as I can tell, with this module that is not the case. So unless you are going to write a Python script that uses the wget module and fetches the file, this won't do what you want.

The easiest way to install wget is with homebrew, but that does require a small bit of setup. The setup is very worth it, as you can install nearly any "unix" utility from brew, including servers such as nginx or postgresql.

Once homebrew is set up, simply brew install wget and you should be set.

Post a Comment for "Wget Is Not Recognized As A Command Even Though It Is Installed"