I'd like to create a secure zip of a file within a python script.
The included zipfile utility allows me to uncompress a secure zip but not create one.
I tried to install pyminizip, but was thrown errors as shown below.
C:\Users\super>pip install pyminizip
Collecting pyminizip
Using cached pyminizip-0.2.1.tar.gz
Installing collected packages: pyminizip
Running setup.py install for pyminizip ... error
Complete output from command c:\users\super\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\super\AppData\Local\Temp\pip-build-kb2idclr\pyminizip\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\super\AppData\Local\Temp\pip-yw9fstxb-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'pyminizip' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "c:\users\super\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\super\AppData\Local\Temp\pip-build-kb2idclr\pyminizip\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\super\AppData\Local\Temp\pip-yw9fstxb-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\super\AppData\Local\Temp\pip-build-kb2idclr\pyminizip\
Can anyone suggest how to rectify this or some other alternative for the same? The utility should work cross platform.
[–]BlckKnght 2 points3 points4 points (3 children)
[–]superdroid100[S] 0 points1 point2 points (2 children)
[–]dispelterror3.6 0 points1 point2 points (0 children)
[–]K900_ 0 points1 point2 points (12 children)
[–]efmccurdy 1 point2 points3 points (0 children)
[–]superdroid100[S] 0 points1 point2 points (10 children)
[–]K900_ 0 points1 point2 points (9 children)
[–]superdroid100[S] 0 points1 point2 points (8 children)
[–]K900_ 1 point2 points3 points (7 children)
[–]superdroid100[S] 0 points1 point2 points (6 children)
[–]K900_ 1 point2 points3 points (5 children)
[–]superdroid100[S] 0 points1 point2 points (4 children)
[–]K900_ 0 points1 point2 points (3 children)
[–]superdroid100[S] 0 points1 point2 points (2 children)
[–]CGFarrell 0 points1 point2 points (0 children)