I am working in PyCharm, I am facing this problem and can't fix it.
import camelot
tables = camelot.read_pdf('table.pdf')
print(tables)
Error message: AttributeError: module 'camelot' has no attribute 'read_pdf'
the code is supposed to read tables from the specified PDF file and extract it.

Maybe you installed the wrong module. First uninstall the incorrect module by using
pip uninstall camelotStep 1 :
pip install camelot-pyStep 2 : If you facePdfFileReader deprecated error then
pip install --upgrade PyPDF2==2.12.1