short.py
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
import time
print("Opening...")
driver = webdriver.Chrome('chromedriver.exe')
driver.get('https://google.com')
Converting the above script file to executable file:
pyinstaller short.py
While executing the short.exe
Gave me error:
Fatal Python error: initfsencoding: unable to load the file system codec
zipimport.ZipImportError: can't find module 'encodings'
My Python version is 3.7, can anybody please suggest the most appropriate corrective action to take?
python -Von the command line. orpy -3 --version