Hello @DonBaechtel-7903,
Welcome to Microsoft Q&A forum.
You may try to use a command line shell to install the package or run python commands.
To install packages in VS 2022, please first navigate to/open Python Environments window by clicking View => Other Windows => Python Environments. Click Overview => select Packages (PyPI) => in "Search PypI and installed packages" box, type the package that you want to install, for example matplotlib, and choose "Run command: pip install matplotlib".
To run some python commands like Python -m ensurepip --default-pip, you can select back to Overview => click Open in PowerShell => run the command.
Besides, please refer to this document: Install packages using the Python Environments window
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.