No module named 'encodings' in python

0

I have a server with Centos 7 and ps I'm working with python, I need to install a module with pip3 but whenever I'm going to execute it I get the following error:

Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'

Current thread 0x00007f9a97e87740 (most recent call first):
Aborted

I've been searching all over Google and the solutions do not work for me.

I appreciate your help.

    
asked by Jhonatan Rodriguez 03.04.2018 в 21:55
source

1 answer

0

I could already solve it by executing the commands: unset PYTHONPATH and unset PYTHONHOME in case someone happens to this same error.

    
answered by 03.04.2018 в 22:49