Troubleshooting (Python 2.7) pipenv error

Aaron Medina
Oct 30, 2022


I just installed pipenv and I’m being blocked by this issue when creating a virtual environment for my coding practice.

It seems that the errors are related to encoding.

I can’t even use the pipenv — help

After a few minutes of surfing, setting the locale made it work.

Here’s how I did it:

1. I uninstalled pipenv, although I haven’t tried if this is necessary.

pip uninstall pipenv

2. Set the locale. This is a key step.

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

3. Reinstall pipenv.

pip install pipenv

Pipenv — help is now working. :)