title: Wheel file install using pip is not resolving in import
body: <p>I have two files and one setup.py</p>
  <p>base.py</p>
  <pre><code>import json
  import logging
  import sys
  
  
  class Base():
      def __init__(self, log_level: str) -&gt; None:
          self.log = self.log_level(log_level)
          
      def log_config(self, log_level: str) -&gt; logging:
          &quot;&quot;&quot;This method setup all required logging and return logging for app usage.
          Note: still more implementation is required to support multiple options
  
          Args:
              log_level (str): _description_
  
          Returns:
              logging: _description_
          &quot;&quot;&quot;
          self.log.info(&quot;Setting up logging required attributes&quot;)
          log_level = log_level.lower()
          logger = logging
          logger.basicConfig()
          FORMAT = &quot;[%(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s&quot;
          logging.basicConfig(format=FORMAT)
          if log_level == &quot;debug&quot;:
              logger.setLevel(logging.DEBUG)
          elif log_level == &quot;critical&quot;:
              logger.setLevel(logging.CRITICAL)
          elif log_level == &quot;warning&quot;:
              logger.setLevel(logging.WARNING)
          else:
              return logging.INFO
  
          self.log.info(&quot;Set up done for logging attributes&quot;)
          return logger
  
      def terminate(self, status_code: int = -1) -&gt; None:
          &quot;&quot;&quot;Terminates the program and send Validate exit status code like 0 for successful and -1 for non successful
  
          Args:
              status_code (int, optional): status code. Defaults to -1.
          &quot;&quot;&quot;
          sys.exit(status_code)
  
      def read_json_file(self, file_path: str) -&gt; dict:
          &quot;&quot;&quot;This method reads json file and convert it to python dict object.
  
          Args:
              file_path (str): json file path location
  
          Raises:
              e: like permission issues, file not found
  
          Returns:
              dict: json file data
          &quot;&quot;&quot;
          self.log.info(&quot;Reading Json file {0}&quot;.format(file_path))
          try:
              with open(file_path) as json_file:
                  data = json.load(json_file)
          except Exception as e:
              raise e
  
          return data
  </code></pre>
  <p>my_test.py</p>
  <pre><code>import json
  import azure.cosmos.cosmos_client as cosmos_client
  import azure.cosmos.exceptions as exceptions
  from azure.cosmos.partition_key import PartitionKey
  from base import Base
  
  class CosmosDB(Base):
      def __init__(self, 
                   log_level: str, 
                   db_name: str, 
                   container_name: str, 
                   cdb_url: str,
                   access_key: str,
                   partition_key: str) -&gt; None:
          super(log_level).__init__()
  
          self.db_name = db_name
          self.container_name = container_name
          self.cdb_url = cdb_url
          self.access_key = access_key
          self.partition_key = partition_key
          self.client = cosmos_client.CosmosClient(self.cdb_url, {'masterKey': self.access_key} )
  
      def create_database(self):
          self.log.info(&quot;Create Database&quot;)
  
          try:
              self.client.create_database(id=self.db_name)
              self.log.info('Database with id \'{0}\' created'.format(id))
  
          except exceptions.CosmosResourceExistsError:
              self.log.info('A database with id \'{0}\' already exists'.format(id))
  
      def create_container(self):
          partition_key = PartitionKey(path=self.partition_key, kind='Hash')
          self.log.info(&quot;Create Container - Basic&quot;)
          db = self.client.get_database_client(self.db_name)
          try:
              db.create_container(id=self.container_name, partition_key=partition_key)
              self.log.info('Container with id \'{0}\' created'.format(id))
  
          except exceptions.CosmosResourceExistsError:
              self.log.info('A container with id \'{0}\' already exists'.format(id))
  
      def create_items(self, data: json):
          try:
              self.log.info('Creating Items')
              self.container.create_item(body=data)
          except Exception as e:
              raise
  
      def cdb_env_setup(self):
          try:
             
              self.create_database()
              self.create_container()
  
          except exceptions.CosmosHttpResponseError as e:
              self.log.error('Cosmos DB env setup is not completed. {0}'.format(e.message))
              self.terminate()
  
          finally:
              self.log.info(&quot;Cosmos DB env setup is completed&quot;)
  
      
  </code></pre>
  <p>setup.py</p>
  <pre><code>from setuptools import setup, find_packages
  
  setup(
      name='mytest',
      version='1.0',
      python_requires='&gt;=3.9',
      author=&quot;VSR&quot;,
      author_email=&quot;xxx@xxx.com&quot;,
      description=&quot;python shared libs&quot;,
      packages=find_packages(),
  )
  </code></pre>
  <p>I followed below steps:</p>
  <pre><code>  pip install wheel setuptools
    python ./setup.py bdist_wheel --universal
    pip install dist/mytest-1.0-py2.py3-none-any.whl
    
    pip freeze
    mytest @ file:///C:/Users/vidya/Downloads/medml%20%281%29/medml/code/databricks/services/test/dist/mytest-1.0-py2.py3-none-any.whl
    (.venv) 
  </code></pre>
  <p>If import mytest it is not resolving properly, not sure where I am making mistake also pip freeze output showing differently, my files also have few dependencies like azure-cosmos</p>
  <p>How can I fix this issue. Any dependencies is used to add or any other issue</p>