ฉันใช้ 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
หมายความว่าไฟล์เหล่านี้เป็นชื่อ แต่ทำไมจึงไม่นำเข้า