from prettytable import Pr" /> from prettytable import Pr" /> from prettytable import Pr"/>

PrettyTable library is not working when using official source code from GitHub

67 Views Asked by At

I am getting this error when using the prettytable library on my virtual machine.

File "lib_report.py", line 7, in <module>
from prettytable import PrettyTable
File "/users/ssri/Documents/prettytable.py", line 137
self._field_names: list[str] = []
                 ^
SyntaxError: invalid syntax

Can someone help me fix this issue?

I downloaded the prettytable.py file from the official GitHub repo and tried using it in my code.

0

There are 0 best solutions below