显示python库路径

发布时间:2019-09-15 10:01:33编辑:auto阅读(1876)

    python -c "import sys;print sys.path"


    [root@localhost doc]# python -c “import sys;print sys.path”
    ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0']

关键字