trying locale.setlocale('locale.LC_ALL, 'en_IN') and it's not working throwing error locale.Error: unsupported locale setting tried using utf-8 encoding too, all suggestions are welcomed I am using python 2.7.
            Asked
            
        
        
            Active
            
        
            Viewed 633 times
        
    0
            
            
        - 
                    Possible duplicate of [Python locale error: unsupported locale setting](https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting) – Georgy Nov 27 '19 at 08:53
1 Answers
0
            
            
        You can only set a locale in Python if your OS has this locale available. So you'd have to update your locales on the OS level. See Python locale error: unsupported locale setting for a description how to do this in Linux, for example.
 
    
    
        Kilian Foth
        
- 13,904
- 5
- 39
- 57
- 
                    @prk190 On Mac, this is in System Preferences::Languages & Regions::+ (plus sign under the list). – Kilian Foth Nov 27 '19 at 09:11
