pip: 'utf8' encoding not found
- Pip version: 9.0.0
- Python version: 2.7.12
- Operating System: Ubuntu 16.04.1 LTS xenial
Description:
I tried to run Django makemessages with the latest version of pip and it gives me the following error ./lib/python2.7/site-packages/pip/_vendor/webencodings/init.py:1: Unknown encoding “utf8”. Proceeding with ASCII instead.
xgettext: ./lib/python2.7/site-packages/pip/_vendor/webencodings/__init__.py:1: Unknown encoding "utf8". Proceeding with ASCII instead.
xgettext: Non-ASCII string at ./lib/python2.7/site-packages/pip/_vendor/webencodings/__init__.py:64.
Please specify the source encoding through --from-code or through a comment
as specified in http://www.python.org/peps/pep-0263.html.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 4
- Comments: 15 (6 by maintainers)
What worked for me was using the -i flag to ignore my virtualenv:
python manage.py makemessages -l 'sv' -i venv
Same issue
Django
1.9.6pip
9.0.3Python
2.7.10macOS
10.13.4 (17E199)I’ve encountered the same problem some minutes ago. Is it really OK? :-" I’m using pip 9.0.1, Django 2.0.2, Python 3.6 on Ubuntu 17.10