pip3 install [package] works for me for installing the package but when I ran the file calling this package it said it can't find the package.
When I tried py -m pip install [package] it installed the package and the package is found by the file.
I'm curious about the function of py -m. Did I install the package in another place with the second command?