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
阅读(2065) | 评论(0) | 转发(0) |