When create an conda environment pip location is wrong

I create a conda environment when I do

which python 
/opt/miniconda3/envs/my-code/bin/python
 which pip
/Library/Frameworks/Python.framework/Versions/3.13/bin/pip

pip location should be pointing to

/opt/miniconda3/envs/my-code/bin/pip

how to fix this
due to this pip install is going to wrong location
I am using macos

What’s the output of conda list -n my-code pip? Make sure that environment contains pip: conda install -n my-code pip.

As a workaround, you can also invoke the env’s pip via python -m pip install ....