ไม่มีโมดูลชื่อ pdfminer ที่มี pdfminer.six, pdfminer, pdfminer2, pdfminer3 ทั้งหมด

ฉันใช้ Anaconda กับ Python=3.5 และได้ลองทุกอย่างแล้ว

pip install pdfminer.six
pip install pdfminer
pip install pdfminer2
pip install pdfminer3

รวมถึงการดาวน์โหลด Anaconda และ Conda-forge ทุกครั้งที่ฉันพยายามนำเข้า จะมีข้อผิดพลาดเดิมเกิดขึ้น ฉันควรจะทำอย่างไร??

เมื่อได้ลองใช้.

>> pdf2txt.py  # to check if there is a file or not

การใช้เชลล์ มันทำให้ฉันมีข้อผิดพลาด

Traceback (most recent call last):
  File "/home/deshwal/anaconda3/envs/py35/bin/pdf2txt.py", line 8, in <module>
    from pdfminer.converter import XMLConverter, HTMLConverter, TextConverter
  File "/home/deshwal/anaconda3/envs/py35/lib/python3.5/site-packages/pdfminer/converter.py", line 120
    return f'(cid:{cid})'
                        ^
SyntaxError: invalid syntax

>> pip list | grep pdfminer

ให้ฉัน

pdfminer 20191016

หมายความว่าไฟล์เหล่านี้เป็นชื่อ แต่ทำไมจึงไม่นำเข้า


person Deshwal    schedule 22.06.2020    source แหล่งที่มา
comment
ดู stackoverflow.com /คำถาม/55182209/   -  person Justin Ezequiel    schedule 22.06.2020
comment
ไม่มันไม่ได้ช่วยเลย   -  person Deshwal    schedule 23.06.2020
comment
คุณไม่ได้อ่านการสนทนา รหัส pdfminer ใช้ f-strings ซึ่งถูกนำมาใช้ใน python 3.6 คุณอยู่ที่ 3.5   -  person Justin Ezequiel    schedule 23.06.2020