After installing the Tensorflow module I tried to test it with a simple "import tensorflow" file, however, I keep getting this error message:
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00001ecc (most recent call first):
Process finished with exit code -1073740791 (0xC0000409)
I use a laptop with a discrete GPU and an iGPU, I made sure I installed the correct version of Tensorflow for my system and I even made sure Python was added to my Path environment variable. These were the two usual suspects from other threads where people faced the same issue. I am using Python 3.6 to try and run Tensorflow as I was following this tutorial: Python Chat Bot Tutorial.
They require that I use Python 3.6. However, if I were to use Tensorflow with Python 3.7 it works a treat with no issues at all. So far I have suspicions that something is wrong with either my Python 3.6 install or my install of Tensorflow on Python 3.6 but I don't know how to troubleshoot beyond this point.
User contributions licensed under CC BY-SA 3.0