2

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?

4

2 回答 2

6

尝试通过easy_installpip安装 python 包:

# easy_install argparse

# pip install argparse

您可以通过包管理器安装easy_installpip 。

于 2013-11-06T05:44:57.167 回答
0

argparse 是一个 Python 标准库,这意味着你可以使用

import argparse

使用它

于 2013-11-06T05:49:19.083 回答