0

I am new in HP-UX. I am trying to working with python in HP-UX. I have successfully install python download package from hp-ux package

But I can not set environment variable. Python successfully found in "/usr/local/bin". when I tried

python --version

it returned

python: command not found

How can I work with python in HP-UX ? thanks

Zahed
  • 73
  • 2
  • 9

2 Answers2

0

This looks like the directory containing your Python interpreter is not on your PATH. Check if your PATH contains /usr/local/bin:

echo $PATH

If you do not see /usr/local/bin in there, you can add it to your path like this:

export PATH=$PATH:/usr/local/bin
René Fleschenberg
  • 2,418
  • 1
  • 15
  • 11
  • thanks. looks it found python but raise another error.
    `python --version` `/usr/lib/hpux32/dld.so: Unable to find library 'libexpat.so'.Killed`
    – Zahed Aug 05 '15 at 11:49
0
  1. Download python and expat install package.
  2. Install them by using swinstall in HP-UX.
  3. Add /usr/local/bin to your system PATH.
R.Liu
  • 361
  • 3
  • 6