I installed python26 on my CentOS 5.3 machine using the following command. Now I have both python 2.4.3 and python 2.6 running on that machine.
yum install python26
When I run a python script with the following in the beginning of the script.
#!/usr/bin/python26
I will get the following error:
Traceback (most recent call last):
File "./centos-errata.py", line 70, in <module>
import rpm
ImportError: No module named rpm
But if I specify the following instead, it will not complain.
#!/usr/bin/python
How can I fix this error? Thanks.