Are you executing the script in the terminal directly of in a Jupyer notebook?
Sometimes, the default Python environment in a notebook is not set to the right one, so you might need to change it inside the notebook.
If you are using the terminal directly, do you see the environment name in front of the current user?