-1

I am simply trying to download a file from github, but my wget command is not being recognized. I am unsure what is going on. I've read that I should use urlopen instead, but I run into the same error.

enter image description here

Binx
  • 382
  • 7
  • 22

2 Answers2

1

wget is usually provided with unix / linux operating system. It seems you are on windows, so you can:

Also, wget only "download" a file. If you need it for only a few files, you can download them manually.

Blusky
  • 3,470
  • 1
  • 19
  • 35
1

To install and configure wget for Windows:

  1. Download wget for Windows (http://gnuwin32.sourceforge.net/packages/wget.htm) and install the package.
  2. Add the wget bin path to environment variables (optional). Configuring this removes the need for full paths, and makes it a lot easier to run wget from the command prompt:
    Open the Start menu and search for “environment.”
    Select > Edit the system environment variables.
    Select the Advanced tab and click the Environment Variables button.
    Select the Path variable under System Variables.
    Click Edit.
    In the Variable value field add the path to the wget bin directory preceded by a semicolon (;). If installed in the default path, add C:\Program Files (x86)\GnuWin32\bin.
  3. Open the command prompt (cmd.exe) and start running wget commands.
idar
  • 614
  • 6
  • 13