title: python Error: import module not found after making executable
body: <p><a href="https://i.stack.imgur.com/Fk7xZ.png" rel="nofollow noreferrer">Error image</a>    </p>
  
  <pre><code>from pathlib import Path
  import linecache
  import pyperclip
  print('Looking for a path...')
  print('Found path!')
  Path('C:/Users/Akush/Documents/Warcraft III/CustomMapData/YouTD/')
  a = linecache.getline('savecode.txt',7)
  pyperclip.copy(a)
  print('{} copied to clipboard!'.format(a))
  </code></pre>
  
  <p>So everything works fine in pycharm, but when i made .exe from .py it gives "Module not found" error in CMD</p>
  
  <p>Do you know what i did wrong here?
  thanks for help!</p>