I am using conda version 4.14.0. When I activate a conda environment I can see that the current numpy module is 1.22.3
conda list | grep -i numpy
numpy 1.22.3 py39hc58783e_2 conda-forge
When I run python in the conda environment and load numpy it shows version 1.19.1
Python 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:25:59)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.__version__
'1.19.5'
Looking at the sys.path locations I see that it is searching my local account site packages before the environment site-packages, how can this order be updated?
>>> print(sys.path)
['', '/opt/tljh/user/lib/python39.zip',
'/opt/main/user/lib/python3.9',
'/opt/main/user/lib/python3.9/lib-dynload',
'/home/user/.local/lib/python3.9/site-packages',
'/opt/main/user/lib/python3.9/site-packages']
Thank you for your help.
I cannot find where these variables are added through conda.