title: How to make my python script executable
body: <p>I am trying to make my script executable. I used pyinstaller to transform my script into an 'exe'. However, after I transformed it when I double click the 'exe' file it opens a command window and closes it within 0.5 seconds. </p>
  
  <p>My script creates a class that executes functions. The purpose of the script is automatically generate a report from a website, process the report, and export it to a database.</p>
  
  <p>My last few lines prompts the user to input their username, password, month, and year. Then it runs the class functions with the prompted inputs.</p>
  
  <p>Is there something missing in my script or am I writing it wrong?</p>
  
  <p>I am using Windows 7, pycharm as my IDE, my project interpreter is anaconda/python 2.7.</p>
  
  <p>Here is my script, it does not contain the class function because it is too long. But, everything works fine when I run it in pycharm.</p>
  
  <pre><code>import os
  import sys
  import pandas as pd
  import datetime as dt
  import pyodbc
  import sqlalchemy
  import time
  import datetime as dt
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.support.ui import Select
  
  class Cybersource(object):...
  
  username = raw_input("username: ")
  password = raw_input("password: ")
  month = raw_input("month (example: 07): ")
  year = raw_input("year (example: 2015): ")
  
  test = Cybersource(username,password,month,year)
  test.scraper()
  test.rename()
  test.clean()
  </code></pre>
  
  <p>I want to make my script executable so I can run it faster without opening pycharm or hand it off to other people.</p>
  
  <p>Please let me know if there are any questions.</p>
  
  <p>Thanks</p>