By default, CentOS is installed and the python argparse module is not installed. When you execute the following python statement , an exception is thrown.python
statementweb
import argparsesql
exception app
Traceback (most recent call last):
File "./sqlline.py", line 27, in <module>
import argparse
ImportError: No module named argparseorm
solutionget
Visit the web site below to download the appropriate Argparse package.
Https://pkgs.org/download/python-argparse.it
After the RPM installation package(such as python-argparse-1.2.1-2.1.el6.noarch.rpm) is ready, perform the following installation command.io
# rpm -ihv python-argparse-1.2.1-2.1.el6.noarch.rpmast