diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -110,7 +110,11 @@ def windows_lensfun_compile():
             path = 'external/' + os.path.basename(url)
             if not os.path.exists(path):
                 print('Downloading', url)
-                urlretrieve(url, path)
+                try:
+                    urlretrieve(url, path)
+                except:
+                    # repeat once in case of network issues
+                    urlretrieve(url, path)
         
             with zipfile.ZipFile(path) as z:
                 print('Extracting', path, 'into', extractdir)
repeat lib/tools download once in case of network problems