1. Home
  2. Linux
  3. Python Installation Error – Sorry: UnicodeError: escapes not supported can’t load unicodedata module [Solved]

Python Installation Error – Sorry: UnicodeError: escapes not supported can’t load unicodedata module [Solved]

Question: I was compiling Python from source and during ‘make install’, the installation failed with an error message as Sorry: UnicodeError: (“\\N escapes not supported (can’t load unicodedata module)”,). What could be the problem?

Solution:

I have solved this error couple of times during Python installation by uncommenting the line number 180 (unicodedata unicodedata.c    # static Unicode character database) in ‘Modules/Setup.dist’ file located in the Python source directory.

python installation error

#vim Modules/Setup.dist

Uncomment the below line (probably 180)

#unicodedata unicodedata.c

as

unicodedata unicodedata.c
# make clean
#./configure
#make
#make install

Now the installation should work.

Updated on September 2, 2017

Was this article helpful?

Related Articles

Leave a Comment