Python3 on Linux
Python3 on Linux
Hello,
I am revisiting an old issue that was not resolved! I am trying to run gpt and getanc on a new linux virtual machine/container on NCCS adapt. I get a message '/usr/bin/env: ‘python3’: No such file or directory'. The system python version is 3.7.4 and I also updated requests (python -m pip install requests). I'd really appreciate your help.
Thank you.
Amita
I am revisiting an old issue that was not resolved! I am trying to run gpt and getanc on a new linux virtual machine/container on NCCS adapt. I get a message '/usr/bin/env: ‘python3’: No such file or directory'. The system python version is 3.7.4 and I also updated requests (python -m pip install requests). I'd really appreciate your help.
Thank you.
Amita
Filters:
-
- Subject Matter Expert
- Posts: 712
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Python3 on Linux
Hi Bing,
when I try seadas_info I get the same message!
/usr/bin/env: ‘python3’: No such file or directory
Thanks.
Amita
when I try seadas_info I get the same message!
/usr/bin/env: ‘python3’: No such file or directory
Thanks.
Amita
-
- Subject Matter Expert
- Posts: 712
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: Python3 on Linux
Could you please copy and paste the result of "SeaDAS-OCSSW -> SeaDAS/System Info" here?
-
- Subject Matter Expert
- Posts: 270
- Joined: Thu Mar 05, 2009 10:25 am America/New_York
- Been thanked: 2 times
Re: Python3 on Linux
The problem is that you do not have a program called "python3"
Since you mentioned that you python is version 3 and not version 2.7, you need a link from python3 to python.
Assuming $HOME/bin is in your PATH, make a symbolic link
ln -s `which python` $HOME/bin/python3
don
Since you mentioned that you python is version 3 and not version 2.7, you need a link from python3 to python.
Assuming $HOME/bin is in your PATH, make a symbolic link
ln -s `which python` $HOME/bin/python3
don
Re: Python3 on Linux
Just to clarify the problem: Linux distros generally follow the python.org recommendation to use "python" for version 2.x, "python3" for version 3.x, but ADAPT Anaconda uses "python", and https://www.nccs.nasa.gov/nccs-users/instructional/instructional-videos#anaconda describes an Anaconda environment. Don's suggestion:
is certainly worth a try.OB SeaDAS - dshea wrote: ↑Thu Mar 03, 2022 1:21 pm America/New_York ln -s `which python` $HOME/bin/python3