I am working on python using the editor Visual Studio Code. The problem is that there are certain packages that are already installed on my MAC but the Visual Studio Code shows an error when I try importing the packages to my code. Few packages that show this error are: Pillow, pyserial, bs4,etc. I have downloaded the packages using the following pip command:
sudo pip install Pillow
The packages are shown on my system when I use the command:
pip freeze