Full stacktrace:
➜ ~ pip install virtualenv
Traceback (most recent call last):
File \"/usr/bin/pip\", line 11, in
sys.exit(main())
Ubuntu:
$ sudo vi /etc/default/locale
Add below setting at the end of file.
LC_ALL = en_US.UTF-8
While you can set the locale exporting an env variable, you will have to do that every time you start a session. Setting a locale this way will solve the problem permanently:
sudo apt-get install locales
sudo locale-gen en_US.UTF-8
sudo echo "LANG=en_US.UTF-8" > /etc/default/locale
Run the following command (it will work):
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales