title: Anaconda Python - trouble creating a .exe file from a .py
body: <p>I am new programming and when I tried to convert my .py file to an executable .exe file I get the following ERROR.</p>
  <p>My numpy version is 1.19.1 (I have already uninstalled it and installed it again).</p>
  <p>My Anaconda version is 1.9.12</p>
  <p>PYTHONPATH is OK.</p>
  <p>The error is the following when trying to get the .exe file:</p>
  <pre><code>Running auto-py-to-exe v2.7.6
  Building directory: C:\Users\User\AppData\Local\Temp\tmp30rpmpfm
  Provided command: pyinstaller --noconfirm --onedir --windowed  &quot;C:/Users/User/Documents/Python/Scripts/Italiano/conjugacion_verbos_presente/auxiliar.py&quot;
  Recursion Limit is set to 5000
  Executing: pyinstaller --noconfirm --onedir --windowed C:/Users/User/Documents/Python/Scripts/Italiano/conjugacion_verbos_presente/auxiliar.py --distpath C:\Users\User\AppData\Local\Temp\tmp30rpmpfm\application --workpath C:\Users\User\AppData\Local\Temp\tmp30rpmpfm\build --specpath C:\Users\User\AppData\Local\Temp\tmp30rpmpfm
  
  520727 INFO: PyInstaller: 3.6
  520732 INFO: Python: 3.7.6 (conda)
  520736 INFO: Platform: Windows-10-10.0.18362-SP0
  520746 INFO: wrote C:\Users\User\AppData\Local\Temp\tmp30rpmpfm\auxiliar.spec
  520753 INFO: UPX is not available.
  520761 INFO: Extending PYTHONPATH with paths
  ['C:\\Users\\User\\Documents\\Python\\Scripts\\Italiano',
   'C:\\Users\\User\\AppData\\Local\\Temp\\tmp30rpmpfm']
  520765 INFO: checking Analysis
  520769 INFO: Building Analysis because Analysis-01.toc is non existent
  520774 INFO: Reusing cached module dependency graph...
  520878 INFO: Caching module graph hooks...
  521005 INFO: running Analysis Analysis-01.toc
  521011 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
    required by C:\Anaconda3\python.exe
  521620 INFO: Analyzing C:\Users\User\Documents\Python\Scripts\Italiano\conjugacion_verbos_presente\auxiliar.py
  527431 INFO: Processing pre-find module path hook   distutils
  527438 INFO: distutils: retargeting to non-venv dir 'C:\\Anaconda3\\lib'
  533043 INFO: Processing pre-safe import module hook   setuptools.extern.six.moves
  534572 INFO: Processing pre-find module path hook   site
  534577 INFO: site: retargeting to fake-dir 'C:\\Anaconda3\\lib\\site-packages\\PyInstaller\\fake-modules'
  547576 INFO: Processing module hooks...
  547582 INFO: Loading module hook &quot;hook-distutils.py&quot;...
  547591 INFO: Loading module hook &quot;hook-encodings.py&quot;...
  547763 INFO: Loading module hook &quot;hook-importlib_metadata.py&quot;...
  547772 INFO: Loading module hook &quot;hook-lib2to3.py&quot;...
  547785 INFO: Loading module hook &quot;hook-numpy.core.py&quot;...
  An error occurred while packaging
  Traceback (most recent call last):
    File &quot;C:\Anaconda3\lib\site-packages\numpy\core\__init__.py&quot;, line 24, in &lt;module&gt;
      from . import multiarray
    File &quot;C:\Anaconda3\lib\site-packages\numpy\core\multiarray.py&quot;, line 14, in &lt;module&gt;
      from . import overrides
    File &quot;C:\Anaconda3\lib\site-packages\numpy\core\overrides.py&quot;, line 7, in &lt;module&gt;
      from numpy.core._multiarray_umath import (
  ImportError: DLL load failed: The specified module could not be found.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Anaconda3\lib\pkgutil.py&quot;, line 493, in find_loader
      spec = importlib.util.find_spec(fullname)
    File &quot;C:\Anaconda3\lib\importlib\util.py&quot;, line 94, in find_spec
      parent = __import__(parent_name, fromlist=['__path__'])
    File &quot;C:\Anaconda3\lib\site-packages\numpy\__init__.py&quot;, line 142, in &lt;module&gt;
      from . import core
    File &quot;C:\Anaconda3\lib\site-packages\numpy\core\__init__.py&quot;, line 54, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: 
  
  IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
  
  Importing the numpy c-extensions failed.
  - Try uninstalling and reinstalling numpy.
  - If you have already done that, then:`enter code here`
    1. Check that you expected to use Python3.7 from &quot;C:\Anaconda3\python.exe&quot;,`enter code here`
       and that you have no directories in your PATH or PYTHONPATH that can
       interfere with the Python and numpy version &quot;1.18.1&quot; you're trying to use.
    2. If (1) looks fine, you can open a new issue at
       https://github.com/numpy/numpy/issues.  Please include details on:
       - how you installed Python
       - how you installed numpy
       - your operating system
       - whether or not you have multiple versions of Python installed
       - if you built from source, your compiler versions and ideally a build log
  
  - If you're working with a numpy git repository, try `git clean -xdf`
    (removes all files not under version control) and rebuild numpy.
  
  Note: this error has many possible causes, so please don't comment on
  an existing issue about this - open a new one instead.
  
  Original error was: DLL load failed: The specified module could not be found.
  
  
  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py&quot;, line 320, in get_module_file_attribute
      loader = pkgutil.find_loader(package)
    File &quot;C:\Anaconda3\lib\pkgutil.py&quot;, line 499, in find_loader
      raise ImportError(msg.format(fullname, type(ex), ex)) from ex
  ImportError: Error while finding loader for 'numpy.core' (&lt;class 'ImportError'&gt;: 
  
  IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
  
  Importing the numpy c-extensions failed.
  - Try uninstalling and reinstalling numpy.
  - If you have already done that, then:
    1. Check that you expected to use Python3.7 from &quot;C:\Anaconda3\python.exe&quot;,
       and that you have no directories in your PATH or PYTHONPATH that can
       interfere with the Python and numpy version &quot;1.18.1&quot; you're trying to use.
    2. If (1) looks fine, you can open a new issue at
       https://github.com/numpy/numpy/issues.  Please include details on:
       - how you installed Python
       - how you installed numpy
       - your operating system
       - whether or not you have multiple versions of Python installed
       - if you built from source, your compiler versions and ideally a build log
  
  - If you're working with a numpy git repository, try `git clean -xdf`
    (removes all files not under version control) and rebuild numpy.
  
  Note: this error has many possible causes, so please don't comment on
  an existing issue about this - open a new one instead.
  
  Original error was: DLL load failed: The specified module could not be found.
  )
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;C:\Users\User\Desktop\auto-py-to-exe-master\auto_py_to_exe\packaging.py&quot;, line 131, in package
      run_pyinstaller()
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\__main__.py&quot;, line 114, in run
      run_build(pyi_config, spec_file, **vars(args))
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\__main__.py&quot;, line 65, in run_build
      PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py&quot;, line 734, in main
      build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py&quot;, line 681, in build
      exec(code, spec_namespace)
    File &quot;C:\Users\User\AppData\Local\Temp\tmp30rpmpfm\auxiliar.spec&quot;, line 17, in &lt;module&gt;
      noarchive=False)
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py&quot;, line 244, in __init__
      self.__postinit__()
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\building\datastruct.py&quot;, line 160, in __postinit__
      self.assemble()
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\building\build_main.py&quot;, line 422, in assemble
      self.graph.process_post_graph_hooks()
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\depend\analysis.py&quot;, line 311, in process_post_graph_hooks
      module_hook.post_graph()
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\depend\imphook.py&quot;, line 417, in post_graph
      self._load_hook_module()
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\depend\imphook.py&quot;, line 384, in _load_hook_module
      self.hook_module_name, self.hook_filename)
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\compat.py&quot;, line 797, in importlib_load_source
      return mod_loader.load_module()
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 407, in _check_name_wrapper
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 907, in load_module
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 732, in load_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 265, in _load_module_shim
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 696, in _load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 677, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 728, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\hooks\hook-numpy.core.py&quot;, line 29, in &lt;module&gt;
      pkg_base, pkg_dir = get_package_paths('numpy.core')
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py&quot;, line 537, in get_package_paths
      file_attr = get_module_file_attribute(package)
    File &quot;C:\Anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py&quot;, line 339, in get_module_file_attribute
      raise ImportError
  ImportError
  
  Project output will not be moved to output folder
  Complete.
  </code></pre>