Nov-28-2018, 08:18 PM
Good Day Everyone
I am very new to Python programming and created program to compare two csv files and produce a result in Excel. The program worked fine so i created a exe by using pyinstaller. Pyinstaller created the exe with some warning. However, when i am trying to run the exe( from dist folder), i am getting below error:
Fatal Python error: initfsencoding: unable to load the file system codec
zipimport.ZipImportError: can't find module 'encodings'
Below is my current Python Version:
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
When i setup PYTHONHOME and PYTHONPATH in the environment variable then i am getting same when i am even trying to open python 3.6 command prompt( before setting up the path, i was able to open the python 3.6 command prompt)
PYTHONHOME
C:\Users\gaurbhardwaj\AppData\Local\Programs\Python\Python37-32
PYTHONPATH
C:\Users\gaurbhardwaj\AppData\Local\Programs\Python\Python37-32\Lib\site-packages
Any help pointer/help would be highly appreciated!
Thanks
Gaurav
I am very new to Python programming and created program to compare two csv files and produce a result in Excel. The program worked fine so i created a exe by using pyinstaller. Pyinstaller created the exe with some warning. However, when i am trying to run the exe( from dist folder), i am getting below error:
Fatal Python error: initfsencoding: unable to load the file system codec
zipimport.ZipImportError: can't find module 'encodings'
Below is my current Python Version:
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
When i setup PYTHONHOME and PYTHONPATH in the environment variable then i am getting same when i am even trying to open python 3.6 command prompt( before setting up the path, i was able to open the python 3.6 command prompt)
PYTHONHOME
C:\Users\gaurbhardwaj\AppData\Local\Programs\Python\Python37-32
PYTHONPATH
C:\Users\gaurbhardwaj\AppData\Local\Programs\Python\Python37-32\Lib\site-packages
Any help pointer/help would be highly appreciated!
Thanks
Gaurav