这是我尝试导入camelot的代码:
import camelot as cl
这是回应:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-6-360275993d18> in <module>
----> 1 import camelot as cl
2 tables = cl.read_pdf('C:\\2019.pdf', pages='47', flavor='stream')
3 tables[0].plot('text')
ModuleNotFoundError: No module named 'camelot'
这是我检查点列表时发生的情况。 Camelot 已安装:
Package Version
---------------- --------
camelot-py 0.8.0
chardet 3.0.4
click 7.1.2
Django 2.2.12
et-xmlfile 1.0.1
jdcal 1.4.1
numpy 1.18.5
opencv-python 4.2.0.34
openpyxl 3.0.3
pandas 1.0.4
pdfminer.six 20200517
pip 20.1.1
pycryptodome 3.9.7
PyPDF2 1.26.0
python-dateutil 2.8.1
pytz 2019.3
setuptools 41.2.0
six 1.15.0
sortedcontainers 2.2.2
sqlparse 0.3.1
试试这个,但不要使用 2.7,而是使用你拥有的 python 版本。
python2.7 -m pip install camelot-py
Edit:
我的研究告诉我,camelot 和camelot-py 是“Python 包索引上的独立包”。请尝试这些并告诉我会发生什么。
$ pip uninstall camelot
$ pip uninstall camelot-py
$ pip install camelot-py[cv]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)