安装Djangonvd3时出错

2024-06-16 10:38:55 发布

您现在位置:Python中文网/ 问答频道 /正文

在执行以下命令pip3 install django-nvd3时出现以下错误

Collecting django-nvd3
  Using cached django-nvd3-0.9.7.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/rs/30thcgbd2334t5kfx1n3fj5w0000gn/T/pip-build-g97vw973/django-nvd3/setup.py", line 7, in <module>
        readme = readme_file.read()
      File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/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 0xe2 in position 2070: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/rs/30thcgbd2334t5kfx1n3fj5w0000gn/T/pip-build-g97vw973/django-nvd3/

为什么会这样?你知道吗


Tags: djangoinpyinfoeggvarsetupline
2条回答

看起来你好像在打this issue。看起来好像是has been fixed,但从那以后就再也没有发布过。你知道吗

您可以尝试安装主分支。无论如何,这可能是个好主意,因为0.9.7是在2015年发布的。你知道吗

或者,您也可以尝试设置LANG,如本similar issue中为不同项目所建议的那样。你知道吗

LANG=en_US.UTF8 pip3 install django-nvd3

检查setuptools是否正确安装:

pip install  upgrade setuptools

相关问题 更多 >