安装 django-nvd3 时出错
Error installing django-nvd3
我在执行以下命令时出现如下错误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/
为什么会这样?
检查setuptools是否安装正确:
pip install --upgrade setuptools
看起来好像在打this issue. It looks as if it has been fixed,但是之后就没有发布了。
您可以尝试安装主分支。无论如何,这可能是个好主意,因为 0.9.7 于 2015 年发布。
或者,您也可以按照本 similar issue 中针对不同项目的建议尝试设置 LANG
。
LANG=en_US.UTF8 pip3 install django-nvd3
我在执行以下命令时出现如下错误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/
为什么会这样?
检查setuptools是否安装正确:
pip install --upgrade setuptools
看起来好像在打this issue. It looks as if it has been fixed,但是之后就没有发布了。
您可以尝试安装主分支。无论如何,这可能是个好主意,因为 0.9.7 于 2015 年发布。
或者,您也可以按照本 similar issue 中针对不同项目的建议尝试设置 LANG
。
LANG=en_US.UTF8 pip3 install django-nvd3