title: Unresolved reference when importing in Python
body: <p>I've installed a Python package from GitHub using Pip. It installed it to a src folder inside my package. My foldr structure now looks like this:</p>
  
  <pre><code>TestApiClient/src/sdk-config/config_a
  </code></pre>
  
  <p>I need to import <code>ConfigurationApi</code> and <code>Manager</code>.</p>
  
  <p>I tried this but it doesn't work:</p>
  
  <pre><code>from src.config_a.configuration_api import ConfigurationApi
  from src.config_a.manager import Manager
  </code></pre>
  
  <p>How should this be imported?</p>
  
  <p><strong>ConfigurationApi setup.py</strong></p>
  
  <pre><code>#!/usr/bin/env python
  import os
  import re
  import sys
  
  from setuptools import setup, find_packages
  
  # Config sdk python version check
  _valid  =  sys.version_info[:2] == (2, 7) or sys.version_info &gt;= (3,4)
  if not _valid:
      sys.exit("Sorry, SDK only supports versions 2.7, 3.4, 3.5, 3.6, 3.7 of python.")
  
  
  ROOT = os.path.dirname(__file__)
  VERSION_RE = re.compile(r'''__version__ = ['"]([a-z0-9.]+)['"]''')
  
  
  def get_version():
      init = open(os.path.join(ROOT, 'config', '__init__.py')).read()
      return VERSION_RE.search(init).group(1)
  
  
  setup(
      name='sdk-config',
      version=get_version(),
      description='Config SDK for Python',
      long_description=open('README.md').read(),
      author='ME',
      url='https://github.my_company.com/my_org/repo_name',
      scripts=[],
      packages=find_packages(exclude=['tests*']),
      include_package_data=True,
      license="Apache License 2.0",
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'Natural Language :: English',
          'License :: OSI Approved :: Apache Software License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Programming Language :: Python :: 3.7',
      ],
  )
  </code></pre>
  
  <p><strong>Additional Information</strong></p>
  
  <p>I uninstalled and reinstalled but this time I didn't install in editable mode.</p>
  
  <p>If I do <code>pip list</code> I can see that <code>sdk-config</code> is installed. I tried to import that with <code>sdk_config = __import__("sdk-config")</code> thinking I could maybe do something like:</p>
  
  <pre><code>from sdk_config.config_a.configuration_api import ConfigurationApi
  from sdk_config.config_a.manager import Manager
  </code></pre>
  
  <p>However, that resulted in this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/me/PycharmProjects/TestConfigApiClient/TestApiClient.py", line 1, in &lt;module&gt;
      sdk_config = __import__("sdk-config")
  ModuleNotFoundError: No module named 'sdk-config'
  </code></pre>