当我打开终端并键入这些代码时,我已经成功地安装了pyPDF2pyPdf-1.15
import os
from PyPDF2 import PdfFileReader
path = "F:/Download"
inputFileName = os.path.join(path, "RealPython.pdf")
inputFile = PdfFileReader(open(inputFileName, "rb"))
然后这个就来了
^{pr2}$
我不知道我做错了什么,有什么帮助吗?在
Tags:
错误:
int() got an unexpected keyword argument 'base'
。这很可能与ironpython int函数实现有关。您可以尝试在PyPDF2包中编辑这个文件:C:\Program Files (x86)\IronPython 2.7\lib\site-packages\PyPDF2\generic.py
(readHexStringFromStream中的第302行)。将16
作为第二个位置参数传递给int:相关问题 更多 >
编程相关推荐