The pip error message means that the package was not found. Typically that means the package name is not correct. In your case, the package is imported import base64 but the actual package name is pybase64:
pip install pybase64
In similar cases you can find the correct package name by using google, for example with 'install base64 python'
Answer from Cassandra on Stack Overflow
» pip install pybase64
The pip error message means that the package was not found. Typically that means the package name is not correct. In your case, the package is imported import base64 but the actual package name is pybase64:
pip install pybase64
In similar cases you can find the correct package name by using google, for example with 'install base64 python'
As other users noted, the root of the error is that base64 is a built-in module that comes with Python3 so there is no need to pip install it.
https://docs.python.org/3/library/base64.html
import base64 at the top of the file will be sufficient.
» pip install base64-random
» pip install base64-python