title: Python: Custom package installation not importing module
body: <p>I'm having a problem with <a href="https://github.com/pgaref/HTTP_Request_Randomizer" rel="nofollow noreferrer">this package</a> that I installed in Python 3.5. After installing it, I try to run requestProxy.py but it won't import any of its own packages. Here's what I did, and what's happening. </p>
  
  <p>I cloned it and created a private repo using <a href="https://help.github.com/articles/duplicating-a-repository/" rel="nofollow noreferrer">these instructions</a>.</p>
  
  <p>I installed in an activated virtualenv, created without using sudo, using:</p>
  
  <pre><code>pip3 install -e HTTP_Proxy_Randomizer 
  </code></pre>
  
  <p>Terminal said it installed ok.</p>
  
  <p>I can find the egg link in my virtualenv's site-packages folder, but when I try to run the main file, it says:</p>
  
  <pre><code>from project.http.requests.parsers.freeproxyParser import freeproxyParser
  ImportError: No module named project.http.requests.parsers.freeproxyParser
  </code></pre>
  
  <p>I had to write a setup.py for the package, which didn't seem to come with its own. I came up with:</p>
  
  <pre><code>setup(name='HTTP_Request_Randomizer',
    version='1.0',
    description='HTTP Proxy Request Randomizer',
    package_dir={'project': 'project','http':'project/http',\
    'requests':'project/http/requests','errors':'project/http/requests/errors',\
    'parsers':'project/http/requests/parsers','proxy':'project/http/requests/proxy'},
    packages=['project','http','requests','errors','parsers','proxy']
  </code></pre>
  
  <p>Here's the package structure:</p>
  
  <p><a href="https://i.stack.imgur.com/RxG18.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RxG18.png" alt="enter image description here"></a></p>
  
  <p>pip3 freeze</p>
  
  <p>gives me: </p>
  
  <pre><code>Complete output from command git config --get-regexp remote\..*\.url:
  fatal: bad config file line 4 in /home/danny/.gitconfig
  
  ----------------------------------------
  Error when trying to get requirement for VCS system Command "git config --get-regexp remote\..*\.url" failed with error code 128 in /home/danny/Documents/HTTP_Request_Randomizer, falling back to uneditable format
  Could not determine repository location of /home/danny/Documents/HTTP_Request_Randomizer
  Django==1.9.7
  ## !! Could not determine repository location
  HTTP-Request-Randomizer==1.0
  mysqlclient==1.3.7
  </code></pre>
  
  <p>So I want to have requestProxy.py install the other necessary packages and not fail at line 1. I'm sure this is a problem with my implementation and not the original author's coding. I was experimenting with this package a couple of weeks ago before I was aware of virtualenvs or pip install -e, and just copied it manually to site-packages. It worked then. Now I understand the concepts to do it more cleanly, but I can't get those to work.</p>
  
  <p>It feels as though I have done something wrong with my git config or with my package_dir structure in setup.py, perhaps?</p>
  
  <p>I've been pythoning for maybe a month and have a lot to learn. I normally find what I need on Stack Overflow without having to bother anyone, but after trying everything with this, I really need some help. Any advice much appreciated.</p>