2017-06-01 11 views
0

SL7.3を実行しているマシン(つまり、Python 2.7.5)にすべてのパッケージをインストールしたいと考えています。コマンドhelp("modules")を実行しようとしましたが、次のエラーが表示されます。誰も助けることができます。python list moduleセグメンテーションフォールト

Python 2.7.5 (default, Nov 3 2016, 22:05:29) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2 
Type "help", "copyright", "credits" or "license" for more information. 
>>> help("modules") 

Please wait a moment while I gather a list of all available modules... 

dm.c: 1693: not running as root returning empty list 
/usr/lib64/python2.7/site-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed 
    import gobject._gobject 
/usr/lib64/python2.7/site-packages/matplotlib/cbook.py:136: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead. 
    warnings.warn(message, mplDeprecation, stacklevel=1) 
/usr/lib64/python2.7/pkgutil.py:110: FutureWarning: The pandas.rpy module is deprecated and will be removed in a future version. We refer to external packages like rpy2. 
See here for a guide on how to port your code to rpy2: http://pandas.pydata.org/pandas-docs/stable/r_interface.html 
    __import__(name) 
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type 'PyGtkGenericCellRenderer' is smaller than the parent type's 'GtkCellRenderer' class size 
    from gtk import _gtk 
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion 'node != NULL' failed 
    from gtk import _gtk 
Segmentation fault (core dumped) 
+0

あなたがピップfreeze' 'のようなものを使用してか、見ているだけ方がいいでしょう'site-packages'にあるもので。使用しているコマンドは、すべてのモジュールをロードしようとしますが、競合があれば、それは爆発します。 – pvg

+0

Thanks pip freeze/listが仕事をしました。 –

答えて

0

ピップリスト

ありがとうこのヘルプあなたですか?

またはpip.get_installed_distributionsにdistのため

輸入ピップ

を参照してくださいコードの下に使用します():

 print(dist) 
+0

Thanks pip freeze/listが仕事をしました。 –

関連する問題