title: AttributeError: module 'git' has no attribute 'Repo' - working on local machine but not on remote server
body: <p>I've read through other solutions on here for general module x has no attribute y to no avail. What's catching me here is that this works fine on my local machine. When I transfer it over to a remote machine (with the same version of gitpython, python3 and pip installed) it throws the above error.</p>
  <p>Code is pretty simple</p>
  <pre><code>import git
  </code></pre>
  <p>I have also tried</p>
  <pre><code>from git import Repo
  </code></pre>
  <p>and</p>
  <pre><code>from git import *
  </code></pre>
  <p>and further down:</p>
  <pre><code>repo = git.Repo(&quot;path/to/repo&quot;)
  </code></pre>