How can I get argparse in Python 2.6?

前端 未结 5 843
庸人自扰
庸人自扰 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:36

    If you are on Debian-like systems, you may simply write this:

    apt-get install python-argparse
    

提交回复
热议问题