python - pypoppler无法安装
巴扎黑
巴扎黑 2017-04-17 17:58:56
[Python讨论组]
(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/
巴扎黑
巴扎黑

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号