import zipfile zipFile = zipfile.ZipFile('com.zip', 'w', zipfile.ZIP_STORED) zipFile.write('a.csv','data/a.csv') zipFile.close()