No module named 'algosdk'

i have successfully installed algosdk using command pip3 install py-algorand-sdk but when i am going to create my account using python, it reflect an error saying that
Traceback (most recent call last):
File “C:\Users\atul9\scripts\”, line 1, in
from algosdk import account, mnemonic
ModuleNotFoundError: No module named ‘algosdk’

how to solve this error? Please help!!

Welcome to Algorand!

I always recommend running pip as

python3 -m pip install py-algorand-sdk

Then you run your script as


This is the best way to know you’re using the same python for both pip and your script.
Most likely pip3 does not match python3 in your setup.