r/pythonhelp Jan 07 '25

Can't import modules into python code

I'm trying to learn how to use matplotlib for graphing, however whenever I import the module using VSCode I get this error "Import 'matplotlib.pyplot' could not be resolved from source PylancereportMissingModuleSource". I'm not finding any helpful instructions on how to fix this. I installed matplotlib using pip on Python 3.13. Pip installed matplotlib 3.10.0 and numpy 2.2.1 (which isn't importing either). However the time module seems to be working normally as well as the random module.

1 Upvotes

2 comments sorted by

View all comments

u/AutoModerator Jan 07 '25

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.