python - pypoppler无法安装
(env_pdf) hillerliao@hillerliao-ThinkPad-E420:~/py-prj/robot_writer/pypoppler-0.12.2$ pip install pypoppler
Collecting pypoppler
/home/hillerliao/py-prj/env_pdf/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/hillerliao/py-prj/env_pdf/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached pypoppler-0.12.2.tar.gz
Complete output from command python setup.py egg_info:
Package poppler-glib was not found in the pkg-config search path.
Perhaps you should add the directory containing `poppler-glib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'poppler-glib' found
Package pygobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pygobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygobject-2.0' found
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ADe5EX/pypoppler/setup.py", line 80, in <module>
sources = ['poppler.c', 'popplermodule.c'],
File "/tmp/pip-build-ADe5EX/pypoppler/setup.py", line 38, in __init__
for item, value in pkgconfig(*PACKAGES).items():
File "/tmp/pip-build-ADe5EX/pypoppler/setup.py", line 30, in pkgconfig
for token in subprocess.check_output(['pkg-config', '--libs', '--cflags', ' '.join(packages)]).split():
File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['pkg-config', '--libs', '--cflags', 'poppler-glib pygobject-2.0 pycairo']' returned non-zero exit status 1
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ADe5EX/pypoppler/