Where's python-argparse package in RHEL?
11,170
Try to install python packages via easy_install or pip:
# easy_install argparse
# pip install argparse
you can install easy_install or pip via your package manager.
Comments
-
ITO Yosei almost 2 years
I'm using python's argparse package in CentOS6. I installed it by the following command.
# yum install python-argparse
However, I could not find the package in RHEL5 and 6. Where is it? How can I get argparse?
-
ITO Yosei over 10 yearsThanks. I could install via pip!
easy_install pip && pip install argparse
-
ITO Yosei over 10 yearsWhich version? I got the error
ImportError: No module named argparse
-
ITO Yosei over 10 yearsIn RHEL5, I had to install "python-setuptools" package first.
-
Neo Ko over 10 years@yosei python >=2.7 or python >=3.2
-
ITO Yosei over 10 yearsThe version of Python in RHEL6 and CentOS is 2.6. That is, it is NOT included as standard.
-
ITO Yosei over 10 yearsNo problem. Thanks for your answer.
-
Nathan Basanese over 8 years// , You can also put argparse.py in the project directory. Download argparse.py from here, copy it to the project directory, and make sure to set the file as executable by the right owner: code.google.com/p/argparse/source/browse/argparse.py For more about this, check out the following answer about argparse: stackoverflow.com/a/21359591/2146138
-
Petr over 7 years@NathanBasanese thanks that was only solution as both pip and easy_install was missing from RHEL5 repo