title: ImportError (missing dependencies ['numpy']) at the time of executing the .exe
body: <p>I made a little Python program in order to extract data (.csv files) from a several compressed gzip files using Pandas, gzip and shutil libraries. Once they are extracted the .csv files are joined in one big .csv unique file. </p>
  
  <p>My program supports Python versions <strong>2.7</strong> and <strong>3.7</strong>.</p>
  
  <p>When building an .exe to make easier the use of this little program and also compatible with computers that don't have Python installed, I'm making mistakes because it doesn't work.</p>
  
  <p>This is the main folder in which I'm executing the .exe from PyInstaller: </p>
  
  <p><a href="https://i.stack.imgur.com/2k56Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2k56Z.png" alt="main folder"></a></p>
  
  <p>Note: The "00000(0)" files are .gzip without extension, inside which there is just one .csv file, also without extension.</p>
  
  <p>Do you have a way of solving this?</p>
  
  <p>This is what I obtained from the terminal at the time of real execution:</p>
  
  <p><a href="https://i.stack.imgur.com/QjoZt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QjoZt.png" alt="Terminal"></a></p>
  
  <p>Terminal command to create the .exe:</p>
  
  <p><code>pyinstaller.exe --clean --onefile Convierte_Rar_En_Csv_Final.py --name Transforma2 --hidden-import numpy</code></p>
  
  <p>Versions:</p>
  
  <ul>
  <li>Python : 2.7.15</li>
  <li>pyinstaller: 3.4 (for installing this library I just downloaded the folder from <a href="https://www.pyinstaller.org/downloads.html" rel="nofollow noreferrer">here</a> then move it to <code>C:\YourPythonEnviroment\Lib\site-packages\PyInstaller-3.4</code> and finally made from the terminal once I'm inside the folder PyInstaller-3.4 <code>python setup.py install</code>.)</li>
  <li>pandas: 0.24.0</li>
  <li>numpy: 1.16.0</li>
  <li>pytz: 2018.9</li>
  <li>wxPython 4.0.4</li>
  <li>setuptools: 40.8.0</li>
  <li>python-dateutil: 2.8.0</li>
  </ul>
  
  <p>Code of my program:</p>
  
  <pre><code>def DescomprimeYUne(path):
      import pandas as pd
      import gzip , shutil
      import numpy
  
      results = pd.DataFrame([])
  
      for filename in os.listdir(path):
          pathFile = path + filename
          if filename != __file__.split("/")[-1] and not os.path.isdir(pathFile):
              # # Descomprimo fichero
              with gzip.open(pathFile, 'rb') as f_in:
                  with open(pathFile + '.csv', 'wb') as f_out:
                      shutil.copyfileobj(f_in, f_out)
  
              # Borro fichero original
              os.remove(pathFile)
  
              # Concateno a CSV final
              namedf = pd.read_csv(pathFile + ".csv", skiprows=0)
              results = results.append(namedf)
  
             # Borro fichero csv
             os.remove(pathFile + '.csv')
  
      results.to_csv(path + "final.csv")
  if __name__ == "__main__":
  DescomprimeYUne("./")
  </code></pre>
  
  <p>I followed also <a href="https://github.com/pyinstaller/pyinstaller/issues/1886" rel="nofollow noreferrer">this tutorial</a> but it didn't work for me.</p>