title: python: How to create virtualenv without internet connection
body: <p>I have trouble creating a virtualenv on a server that blocks all internet access. Has anybody successfully done that before? I searched but doesn't show up anything helpful. I have no problem transferring data back and forth, but I don't know what packages need to be downloaded and what options I need to have for the installation.</p>
  
  <p>If you are curious what I got by trying to create one, here's the backtrace:</p>
  
  <pre><code>netops@netops1 /spare/local/latency $virtualenv -p /usr/bin/python2.6 latency
  Running virtualenv with interpreter /usr/bin/python2.6
  New python executable in latency/bin/python2.6
  Also creating executable in latency/bin/python
  Installing setuptools.....................
    Complete output from command /spare/local/latency/latency/bin/python2.6 -c "#!python
  \"\"\"Bootstra...sys.argv[1:])
  
  
  
  
  
  
  " --always-copy -U setuptools:
    Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
  Traceback (most recent call last):
    File "&lt;string&gt;", line 279, in &lt;module&gt;
    File "&lt;string&gt;", line 211, in main
    File "&lt;string&gt;", line 159, in download_setuptools
    File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
      return _opener.open(url, data, timeout)
    File "/usr/lib64/python2.6/urllib2.py", line 391, in open
      response = self._open(req, data)
    File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
      '_open', req)
    File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
      result = func(*args)
    File "/usr/lib64/python2.6/urllib2.py", line 1181, in http_open
      return self.do_open(httplib.HTTPConnection, req)
    File "/usr/lib64/python2.6/urllib2.py", line 1156, in do_open
      raise URLError(err)
  urllib2.URLError: &lt;urlopen error [Errno 110] Connection timed out&gt;
  </code></pre>
  
  <p>Thanks for any help.</p>