Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1090967
  • 博文数量: 120
  • 博客积分: 887
  • 博客等级: 准尉
  • 技术积分: 1883
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-05 21:10
个人简介

RHCE,CCNA,熟悉shell脚本

文章分类

全部博文(120)

文章存档

2015年(16)

2014年(20)

2013年(48)

2012年(20)

2011年(16)

分类: Python/Ruby

2015-05-25 18:23:34

 yum install -y  ipython python-argparse.noarch python-argcomplete.noarch python-argh.noarch

======== 报错 =========
[root@localhost ~]# ipython
Traceback (most recent call last):
  File "/usr/bin/ipython", line 5, in
    from IPython.frontend.terminal.ipapp import launch_new_instance
  File "/usr/lib/python2.6/site-packages/IPython/__init__.py", line 43, in
    from .config.loader import Config
  File "/usr/lib/python2.6/site-packages/IPython/config/__init__.py", line 16, in
    from .application import *
  File "/usr/lib/python2.6/site-packages/IPython/config/application.py", line 31, in
    from IPython.config.configurable import SingletonConfigurable
  File "/usr/lib/python2.6/site-packages/IPython/config/configurable.py", line 26, in
    from loader import Config
  File "/usr/lib/python2.6/site-packages/IPython/config/loader.py", line 26, in
    from IPython.external import argparse
  File "/usr/lib/python2.6/site-packages/IPython/external/argparse/__init__.py", line 10, in
    from _argparse import *
ImportError: No module named _argparse

======= 解决 ======
python-argparse.noarch        #缺少此模块
python-argcomplete.noarch
python-argh.noarch
阅读(2052) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~