簡體   English   中英

在 Windows10 上安裝 python-poppler-qt5 時出錯

[英]Error installing python-poppler-qt5 on Windows10

我正在嘗試 pip install pip install python-poppler-qt5,在解決了許多錯誤之后,我現在收到以下錯誤:(我的程序文件中有 poppler-0.68.0 並添加到 PATH)。

pip install python-poppler-qt5
Collecting python-poppler-qt5
  Using cached https://files.pythonhosted.org/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 2 天了,這對我的項目至關重要,因此非常感謝任何幫助!

您應該安裝 poppler-qt5。 我在這里找到了一個 Windows 二進制文件。

嘗試安裝它,但隨后您可能會發現要安裝其他依賴項。

正如我在Github issue上所寫,最好的解決方案是為盡可能多的操作系統/架構提供二進制輪。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM