简体   繁体   中英

Error installing django-nvd3

I have the following error when executing the following command 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/

Why is this happening?

It looks as if you are hitting this issue . It looks as if it has been fixed , but there hasn't been a release since then.

You could try installing the master branch. This might be a good idea anyway, since 0.9.7 was released in 2015.

Alternatively, or you could try setting LANG , as suggested in this similar issue for a different project.

LANG=en_US.UTF8 pip3 install django-nvd3

检查setuptools是否正确安装:

pip install --upgrade setuptools

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM