7

zip is not recognized as an internal or external command

where can I find zip on my machine in order to run

'zip` cmd?

4
  • Have you seen this? stackoverflow.com/questions/940582/… Dec 5, 2012 at 15:41
  • 1
    Did you install 7-zip, Winzip, or some zip you expect to run? Sounds like that error is your zip isn't in your path or is not installed.
    – AlG
    Dec 5, 2012 at 15:44
  • Make sure that you have "zip" installed (nothing built into windows like that). Maybe you can post some code that shows us what you're doing? serverfault.com/questions/39071/… Dec 5, 2012 at 15:47
  • 7zip uses gzip not zip if you are specifically wanting zip May 5, 2021 at 1:20

5 Answers 5

2

You need to install the aplication. Later, add the folder where is located to your system PATH environment variable.

2
  • 1
    where does Zip and rar usually inatlled?
    – Elad Benda
    Dec 5, 2012 at 18:59
  • It depends of your OS version, but usually in %PROGRAMFILES/winrar or WinZip. Left click on the program icon, goto properties and you''ll see the program path
    – Oscar
    Dec 6, 2012 at 19:37
1

I had to run a bat file which had zip command to be executed, I used to get "'zip' is not recognized as an internal or external command, operable program or batch file."

I went to http://stahlworks.com/dev/index.php?tool=zipunzip, downloaded zip.exe and set it in Environment variables, it is working for me now.

2
  • I downloaded the zip.exe file but still not working.
    – wawawa
    Feb 24, 2021 at 18:03
  • 1
    You have to put zip.exe file's path into enviroment variable path.
    – Xavi
    Mar 2, 2021 at 12:35
1
tar -cvzf  Your_deployment_package.zip files.py

Use tar -cvzf in start instead of zip will work for me.

2
  • Thanks, works for me too. Funny that you can use tar on Windows, but not zip.
    – johey
    Mar 1 at 9:23
  • This command will create a TAR archive file, not a zip file. To create a zip file, add the (undocumented) -a flag. See this StackExchange answer: superuser.com/a/1473257/1066749
    – bgh
    Aug 10 at 14:31
0

The below method worked for me.

By default, Windows doesn't support zip command. Instead, install a third party software like 7-zip. If you are using npm, then copy the "7z.exe" to the folder where npm is installed. In my case, npm was installed under "C:\Users\user-name\AppData\Roaming\npm"

0

I use 7-Zip as my zip tool, and the name of its file is 7z.exe. Windows expects the name to be zip.exe, not 7z.exe. So, I renamed it to zip.exe and it did the trick. Don't forget to add the renamed file to environment variable path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.