Dear Karl and Ryo
G'day
Thank you for your help the problem is sorted out from your suggestions. I would like to write the procedure for this for others as well.
$ conda env list !! it will show all the environment in your system !!!
FERRET * /home/srathore/anaconda3/envs/FERRET !! this is my ferret env path !!
$ conda activate FERRET !! to activate FERRET env !!
$ vi .bashrc
open the bash script and go to the end of the script as shown in the attached image and in the end of the file add the line path/of/your/FERRET-env/lib/python3.7/site-packages/pyferret depend on the path of your env (mine is /home/srathore/anaconda3/envs/FERRET) !!
save the file and close it.
now you can check the function
$ conda activate FERRET
(FERRET)$ pyferret -nojnl
yes? sh func student*
To check (1), what do you find from this command?
yes? SPAWN env | grep -i ferret
To check (2), go to your anaconda directory. (I don't know where yours is, but mine is under /usr/local/ .) Then, do this
$ find . -iname '*pyferret*'
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."