Welcome to Algorand!
Can you post the file test.py as well as the output of python3 -m pip list so we can help you debug? Please write them inside triple backquotes ``` so they are nicely formatted.
test.py
python3 -m pip list