title: Pyinstaller, errors on windows 10
body: <p>I am beginner in Python. I was testing pyinstaller, installed it using the venv. I had some issues with my script, so I got to test this only with a basic print('Testing') main.py script.</p>
  
  <p>Tried:
  - pyinstaller main.py
  Makes the dist folder with exe, but when I run the ext, it flahses and closes. Running the exe inside cmd gives me:</p>
  
  <pre><code>Error loading Python DLL 'path-to-project\dist\main\'.
  LoadLibrary: The specified module could not be found.
  </code></pre>
  
  <ul>
  <li>pyinstaller --onefile main.py
  This does not make the dist bundle, I get:</li>
  </ul>
  
  <pre><code>File "path-to-project\venv\lib\site-packages\PyInstaller\building\utils.py", line 365, in cacheDigest
      with open(fnm, "rb") as f:
  FileNotFoundError: [Errno 2] No such file or directory: ''
  </code></pre>
  
  <p>Not sure what I am doing wrong.</p>