title: Can't Execute Python Script
body: <p>I'm learning Python via 'Automate the Boring Stuff with Python' and I'm stuck on being able to execute my programs. I have the directory to my Python install added to my system environment variables (see below). When I run 'py' or 'python' from the terminal, it does bring up the Python window. However, when I try to run a specific program (for example, named pw.py) by typing 'py pw.py' or 'python pw.py' nothing happens. I have a shebang line in my program (#! python3). It looks like the window briefly tries to come up, but then nothing. Any ideas?</p>
  
  <p>Here is the program:</p>
  
  <pre><code>#! python3
  PASSWORDS = {'email': 'F7minlBDDuvMJuxESSKHFhTxFtjVB6','blog':'VmALvQyKAxiVH5G8v0lif1MLZF3sdt','luggage': '12345'}
  import sys, pyperclip
  if len(sys.argv) &lt;2:
      print('Usage: python pw.py[account] -  copy account password')
      sys.exit()
  
  account = sys.argv[1]  #first command line arg is the account name
  
  if account in PASSWORDS:
      pyperclip.copy(PASSWORDS[account])
      print ('Password for ' + account + ' copied to clipboard.')
  else:
      print ('There is no account named ' + account)
  </code></pre>
  
  <p>Path added</p>
  
  <p><img src="https://i.stack.imgur.com/RbErJ.jpg" alt=""></p>
  
  <p><a href="https://i.stack.imgur.com/qL6PZ.jpg" rel="nofollow noreferrer">Using Admin Command Prompt (some of these are typos - hit enter too fast)</a></p>