在Windows10上安装python

编程入门 行业动态 更新时间:2024-10-23 17:30:37
本文介绍了在Windows10上安装python-poppler-qt5时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在尝试了许多错误之后,我正在尝试pip install pip install python-poppler-qt5,现在我收到以下错误:(我的程序文件中有poppler-0.68.0并已添加到PATH中).

I am trying to pip install pip install python-poppler-qt5, after working through many many errors I now recieve the error below: (I have poppler-0.68.0 in my program files and added to PATH).

pip install python-poppler-qt5 Collecting python-poppler-qt5 Using cached files.pythonhosted/packages/6a/7d/65a14ece5dd6a1564b576c1ca30b0f5639be64cc55b62b4d2b497159ed43/python-poppler-qt5-0.75.0.tar.gz Installing collected packages: python-poppler-qt5 Running setup.py install for python-poppler-qt5 ... error ERROR: Command errored out with exit status 1: command: 'c:\users\zakorak\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zakorak\\AppData\\Local\\Temp\\pip-install-jvte62kt\\python-poppler-qt5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zakorak\\AppData\\Local\\Temp\\pip-install-jvte62kt\\python-poppler-qt5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Zakorak\AppData\Local\Temp\pip-record-s1i1y3_7\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\Zakorak\AppData\Local\Temp\pip-install-jvte62kt\python-poppler-qt5\ Complete output (15 lines): Package poppler-qt5 was not found in the pkg-config search path. Perhaps you should add the directory containing `poppler-qt5.pc' to the PKG_CONFIG_PATH environment variable No package 'poppler-qt5' found running install running build running build_ext building 'popplerqt5' extension Package poppler-qt5 was not found in the pkg-config search path. Perhaps you should add the directory containing `poppler-qt5.pc' to the PKG_CONFIG_PATH environment variable No package 'poppler-qt5' found C:\Users\Zakorak\AppData\Local\Programs\Python\Python37\sip.exe -I C:\Users\Zakorak\AppData\Local\Programs\Python\Python37\sip -t POPPLER_V0_20_0 -c build\temp.win-amd64-3.7\Release -b build\temp.win-amd64-3.7\Release\poppler-qt5.sbf -I C:\Users\Zakorak\AppData\Local\Programs\Python\Python37\sip\PyQt5 -n PyQt5.sip -t WS_WIN -t Qt_5_13_0 poppler-qt5.sip sip: Usage: sip [-h] [-V] [-a file] [-b file] [-B tag] [-c dir] [-d file] [-D] [-e] [-f] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-P] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-X id:file] [-y file] [-z file] [@file] [file] error: command 'C:\\Users\\Zakorak\\AppData\\Local\\Programs\\Python\\Python37\\sip.exe' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\zakorak\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Zakorak\\AppData\\Local\\Temp\\pip-install-jvte62kt\\python-poppler-qt5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Zakorak\\AppData\\Local\\Temp\\pip-install-jvte62kt\\python-poppler-qt5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Zakorak\AppData\Local\Temp\pip-record-s1i1y3_7\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

我已经被困了两天来安装python-poppler-qt5,这对我的项目是必不可少的,因此任何帮助将不胜感激!

I have been stuck on installing python-poppler-qt5 for 2 days now and it is essential to my project, so any help would be GREATLY appreciated!

推荐答案

您应该安装poppler-qt5.我在此处找到了Windows二进制文件.

You should install poppler-qt5. I found a Windows binary here.

尝试安装它,但是随后您可能会发现要安装的其他依赖项.

Try installing it, but then you'll probably find other dependencies to be installed.

就像我在 Github问题,最好的解决方案是为尽可能多的os/体系结构提供二进制轮子.

As I wrote on Github issue, the best solution would be providing binary wheels for as many os/architectures as possible.

更多推荐

在Windows10上安装python

本文发布于:2023-07-05 09:00:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1035487.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!