UnicodeDecodeError通过pip安装virtualenv安装时出错

UnicodeDecodeError通过pip安装virtualenv安装时出错,pip,virtualenv,setuptools,Pip,Virtualenv,Setuptools,virtualenv 15.0.1 Ubuntu 16.04.1 LTS 区域设置: 这将完美地执行virtualenv被停用: root@simple_project:~# pip install django-crequest==2016.3.16 但当我激活virtualenv时: (photoarchive) root@simple_project:~/venv# pip install django-crequest==2016.3.16 Collecting django-creq

virtualenv 15.0.1

Ubuntu 16.04.1 LTS

区域设置:

这将完美地执行virtualenv被停用:

root@simple_project:~# pip install django-crequest==2016.3.16
但当我激活virtualenv时:

(photoarchive) root@simple_project:~/venv# pip install django-crequest==2016.3.16
Collecting django-crequest==2016.3.16
  Using cached django-crequest-2016.3.16.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-g5etn1cn/django-crequest/setup.py", line 9, in <module>
        license=open('LICENSE').read(),
      File "/root/venv/photoarchive/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 204: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g5etn1cn/django-crequest/

您能帮助我了解发生了什么以及如何应对吗?

该软件包的许可证文件中似乎有非ascii文本和pip文件?我不喜欢它。尝试设置LC_CTYPE=C.UTF-8

(photoarchive) root@simple_project:~/venv# pip install django-crequest==2016.3.16
Collecting django-crequest==2016.3.16
  Using cached django-crequest-2016.3.16.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-g5etn1cn/django-crequest/setup.py", line 9, in <module>
        license=open('LICENSE').read(),
      File "/root/venv/photoarchive/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 204: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g5etn1cn/django-crequest/