0

I have up top of my script "from prettytable import PrettyTable." However, I get an error stating, "Unable to import 'prettytable.'" I have downloaded prettytable-0.7 and placed it in the directory, but still get the same error message.

Dan
  • 39
  • 3
  • 5

1 Answers1

1

You need do install the library (https://pypi.org/project/PrettyTable/) via pip, since you are using python3.7, use pip3.7

pip3.7 install prettytable

Then it should work

$ python3.7
>>> from prettytable import PrettyTable
>>>
Devesh Kumar Singh
  • 20,259
  • 5
  • 21
  • 40