Locale error while installing Bolt python library

If you are an Ubuntu user and facing locale.Error: unsupported locale setting. Then type the below command to fix the issue.

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

After typing above command , a pop up will open , select All locales and click enter.

And then another pop will open and select en_US.UTF-8 and then press enter.


Note the above settings will stop working after closing the current session. To make it permanent, follow the below instructions.

  • Open the bashrc file by typing the below command.
    nano ~/.bashrc

  • And copy the below lines to the end of a file.
    export LC_ALL="en_US.UTF-8"
    export LC_CTYPE="en_US.UTF-8"
    sudo dpkg-reconfigure locales

  • Save the file by pressing ctrl+x and type y and enter.

  • Then run the following command in terminal.
    source ~/.bashrc

1 Like

You can install bolt library in windows itself
1. Open cmd prompt check pip is installed or not by pip-V cmd
2. if not installed get-pip.py cmd to install
3. now,* pip install boltiot * for installing bolt librabry