Be sure that you also run it on while env active.
Also you can try to make it work from outside
conda run -n env_name python script.py
it runs your script within conda. be sure you are running script and installing packages on same conda env there might be multiple