python - pypoppler无法安装

 手机用户2502881415 发布于 2022-10-28 10:11
(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 "", line 1, in 
      File "/tmp/pip-build-ADe5EX/pypoppler/setup.py", line 80, in 
        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/
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有