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

Updated on September 2, 2017

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?


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


unicodedata unicodedata.c
# make clean
#make install

Now the installation should work.

Was this article helpful?

Related Articles

Leave a Comment