title: Python: Having trouble functioning after compiling python into EXE
body: <p>My python code that processes excel spreadsheet works perfectly by itself with py3 and IDE debugging environment. The codes takes an input.xls, covert it to dataframe, processes it, and then exports a output1.xlsx.</p>
  <p>However, I need to take the application to a system with no python pre-installed. After following this specific <a href="https://datatofish.com/executable-pyinstaller/" rel="nofollow noreferrer">pyinstaller tutorial</a>, I managed to compile the application into a exe file but fails to function.</p>
  <p><a href="https://i.stack.imgur.com/yNUKB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yNUKB.png" alt="Error code" /></a></p>
  <p>I would assume that the app is having difficulty picking up relative paths. I've tried googling the error code but didn't find similar error code ending with &quot;Access is denied&quot; rather &quot;The Requested operation requires elevation&quot; or other. I've also attempted elevating the app to admin. I just started software development and am pretty lost in this case. Any help guys?</p>
  <p>P.S. I've also tagged pandas as there might be a slight chance it may be caused by pandas.</p>
  <pre><code>
  import os
  from pandas import DataFrame
  import pandas as pd
  import numpy as np
  
  df = pd.read_excel('Input.xls')
  
  # Processing excelsheets
  
  df.to_excel('output1.xlsx', index=False)
  </code></pre>