411dc2
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
411dc2
index 91c48b3..0c9b0f4 100755
411dc2
--- a/setuptools/command/easy_install.py
411dc2
+++ b/setuptools/command/easy_install.py
411dc2
@@ -446,6 +446,12 @@ class easy_install(Command):
411dc2
         instdir = normalize_path(self.install_dir)
411dc2
         pth_file = os.path.join(instdir, 'easy-install.pth')
411dc2
 
411dc2
+        if not os.path.exists(instdir):
411dc2
+            try:
411dc2
+                os.makedirs(instdir)
411dc2
+            except (OSError, IOError):
411dc2
+                self.cant_write_to_target()
411dc2
+
411dc2
         # Is it a configured, PYTHONPATH, implicit, or explicit site dir?
411dc2
         is_site_dir = instdir in self.all_site_dirs
411dc2