To use the packages you would need to install them. Depending on your setup this can vary. Based on your tags, I am assuming you're pip-installing packages. You need to run the following commands to install the packages:
Once you install these packages, ideally your errors should be resolved.