title: install from a git subdirectory with pip requirements
body: <p>I have the following structure in git</p>
  
  <pre><code>scripts/
  scripts/folder1/
  scripts/folder1/module
  scripts/folder1/module/setup.py
  scripts/folder1/module/src/module
  scripts/folder1/module/src/module/__init__.py
  scripts/folder1/module/src/module/source.py
  </code></pre>
  
  <p>I want to install module , so I tried the following in my requirements.txt</p>
  
  <pre><code>git+https://user@bitbucket.org/repo-name/scripts.git#egg=module&amp;subdirectory=module 
  </code></pre>
  
  <p>but this does not seem to work and I get the following error:</p>
  
  <pre><code>IOError: [Errno 2] No such file or directory: '/private/var/folders/p_/gz96g4610fn94hz6w_l2gjyw0000gn/T/pip-build-MLhekq/module/module/setup.py
  </code></pre>
  
  <p>I understand that this question may have been answered at <a href="https://stackoverflow.com/questions/13566200/how-can-i-install-from-a-git-subdirectory-with-pip">How can I install from a git subdirectory with pip?</a> but I am looking for the exact syntax in my case.</p>