How can I know if the environment that I am in (some version of HPUX) has python installed?
Asked
Active
Viewed 3,749 times
2 Answers
1
If python is in your PATH-Environment variable (if it is properly installed, it should be), you could use one of the following three:
python --version
which python
Whereis python
- Calls python --version
- Shows the path that is called when using
python
- Shows all paths to python
If you are unlucky, it is not in your PATH and you actually have to search the whole system to be sure it is not installed somewhere.
find / -name python

Jacob
- 41,721
- 6
- 79
- 81
-
I haven't used HP-UX in over 10 years, but on most Unices I would try `locate python | grep bin` first. – Fred Foo May 21 '13 at 15:31
-1
you can use the swinstall command to list installed packages: http://www.bga.org/~lessem/psyc5112/usail/man/hpux/swinstall.1.html
and as @jacob said the which
,whereis
and find
commands are very usefull

Elia
- 193
- 1
- 3
- 11