django 3.5 makemessages refers to previous virtual env
<p>I am running django 1.10 with python 3.5 on windows 7 and I am trying to translate my test files.</p>

<p>I have created the es language directory in the locale directory.</p>

<p>In the virtual environment, at the command prompt I enter: <code>python manage.py makemessages --locale=es</code></p>

<p>I get the following error message:</p>

<pre><code>....
.\manage.py
.\requirements.txt.py
.\requirements\base.txt.py
.\requirements\deployment.txt.py
.\requirements\development.txt.py
.\requirements\production.txt.py
.\runtime.txt.py
xgettext: Non-ASCII string at .\env\Lib\sitepackages\compressor\filters\cssmin\rcssmin.py:70.
          Please specify the source encoding through --from-code.
</code></pre>

<p>I have seen this <a href="http://stackoverflow.com/questions/20955811/localization-with-django-and-xgettext">post</a> and changed the <code>ascii</code> to <code>utf-8</code> and even tried <code>utf8</code>. I get the same error message.</p>

<p>When I open the file <code>.\env\Lib\sitepackages\compressor\filters\cssmin\rcssmin.py</code>, there is no code on line 70. Here is the relevant portion of the file:</p>

<pre><code>Both python 2 (&gt;= 2.4) and python 3 are supported.

.. _YUI compressor: https://github.com/yui/yuicompressor/

.. _the rule list by Isaac Schlueter: https://github.com/isaacs/cssmin/
"""
if __doc__:
    # pylint: disable = W0622
    __doc__ = __doc__.encode('ascii').decode('unicode_escape')
__author__ = r"Andr\xe9 Malo".encode('ascii').decode('unicode_escape')
__docformat__ = "restructuredtext en"
__license__ = "Apache License, Version 2.0"
__version__ = '1.0.6'
__all__ = ['cssmin']

import re as _re
</code></pre>

<p><strong>I have run out of ideas. Does anyone have any suggestions?</strong></p>

<p>This error was due to an old virtual environment folder that was on my system. I have deleted this folder, and a new error now displays. I have posted a different thread for the new error.</p>

python django translation