jazzband / prettytable

Display tabular data in a visually appealing ASCII table format
https://pypi.org/project/PrettyTable/
Other
1.36k stars 155 forks source link

Import "prettytable" could not be resolved from source #134

Closed shu004 closed 2 years ago

shu004 commented 2 years ago

I have installed prettytable and although the code in the screen shot runs to completion, it appears there is an error or warning on the statement:

from prettytable import PrettyTable

How do I resolve this issue?

Screen Shot 2021-10-01 at 11 50 53 PM

hugovk commented 2 years ago

This will be something to do with your IDE settings, it probably has a different environment, and is unrelated to PrettyTable.

Try https://dev.to/climentea/how-to-solve-pylance-missing-imports-in-vscode-359b or Stack Overflow.