docker中如何安装 pip install cairosvg
-
FROM debian:jessie,安装出现如下错误,不知如何解决
pip install cairosvg
Downloading/unpacking cairosvg
Downloading CairoSVG-2.1.3.tar.gz
Running setup.py (path:/tmp/pip-build-75wYYn/cairosvg/setup.py) egg_info for package cairosvg
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-75wYYn/cairosvg/setup.py", line 24, in
with open(init_path, 'r', encoding='utf-8') as fd:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):File "", line 17, in
File "/tmp/pip-build-75wYYn/cairosvg/setup.py", line 24, in
with open(init_path, 'r', encoding='utf-8') as fd:
TypeError: 'encoding' is an invalid keyword argument for this function
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-75wYYn/cairosvg
Storing debug log for failure in /root/.pip/pip.log===============================================
(from https://pypi.org/simple/cairosvg/)
Running setup.py (path:/tmp/pip-build-sRHfu6/cairosvg/setup.py) egg_info for package cairosvg
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-sRHfu6/cairosvg/setup.py", line 24, in
with open(init_path, 'r', encoding='utf-8') as fd:
TypeError: 'encoding' is an invalid keyword argument for this function
Complete output from command python setup.py egg_info:
Traceback (most recent call last):File "", line 17, in
File "/tmp/pip-build-sRHfu6/cairosvg/setup.py", line 24, in
with open(init_path, 'r', encoding='utf-8') as fd:
TypeError: 'encoding' is an invalid keyword argument for this function