How can I get argparse in Python 2.6?

前端 未结 5 846
庸人自扰
庸人自扰 2020-12-10 10:29

I have some Python 2.7 code written that uses the argparse module. Now I need to run it on a Python 2.6 machine and it won\'t work since argparse was added in 2.7.

I

5条回答
  •  青春惊慌失措
    2020-12-10 10:52

    On Centos, Scientific, or Redhat, you can fix this by running the command:for

    yum install python-argparse
    

提交回复
热议问题