ImportError: No module named argparse


easy_install argparse


如果没有root权限,As a simple solution copy from to your project folder.




As of Python >= 2.7 and >= 3.2, the argparse module is maintained within the Python standard library. For users who still need to support Python < 2.7 or < 3.2, it is also provided as a separate package, which tries to stay compatible with the module in the standard library, but also supports older Python versions.

argparse is licensed under the Python license, for details see LICENSE.txt.


argparse should work on Python >= 2.3, it was tested on:

  • 2.3, 2.4, 2.5, 2.6 and 2.7
  • 3.1, 3.2, 3.3, 3.4


Try one of these:

python install

easy_install argparse

pip install argparse

putting in some directory listed in sys.path should also work

posted @ 2015-06-15 15:11  emanlee  阅读(9186)  评论(0编辑  收藏  举报