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.

Share:
11,170
ITO Yosei
Author by

ITO Yosei

Hello, World.

Updated on June 13, 2022

Comments

  • ITO Yosei
    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
    ITO Yosei over 10 years
    Thanks. I could install via pip! easy_install pip && pip install argparse
  • ITO Yosei
    ITO Yosei over 10 years
    Which version? I got the error ImportError: No module named argparse
  • ITO Yosei
    ITO Yosei over 10 years
    In RHEL5, I had to install "python-setuptools" package first.
  • Neo Ko
    Neo Ko over 10 years
    @yosei python >=2.7 or python >=3.2
  • ITO Yosei
    ITO Yosei over 10 years
    The version of Python in RHEL6 and CentOS is 2.6. That is, it is NOT included as standard.
  • ITO Yosei
    ITO Yosei over 10 years
    No problem. Thanks for your answer.
  • Nathan Basanese
    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
    Petr over 7 years
    @NathanBasanese thanks that was only solution as both pip and easy_install was missing from RHEL5 repo