Python论坛  - 讨论区

标题:[python-chinese] 大家遇到过这个错误吗 ??

2007年06月12日 星期二 12:27

haur hekun06在gmail.com
星期二 六月 12 12:27:18 HKT 2007

´ó¼ÒÓöµ½¹ýÕâ¸ö´íÎóÂð ??

[root在as4 ~]# python
Could not find platform independent libraries 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
'import site' failed; use -v for traceback
Python 2.4.4 (#3, Jun 12 2007, 10:59:57)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named os
>>>


ÖªµÀµÄͬ־,°ïæһÏÂô
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070612/e88f742b/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月12日 星期二 12:33

Leo Jay python.leojay在gmail.com
星期二 六月 12 12:33:31 HKT 2007

On 6/12/07, haur <hekun06在gmail.com> wrote:
> 大家遇到过这个错误吗 ??
>
> [root在as4 ~]# python
> Could not find platform independent libraries 
> Could not find platform dependent libraries 
> Consider setting $PYTHONHOME to [:]
> 'import site' failed; use -v for traceback
> Python 2.4.4 (#3, Jun 12 2007, 10:59:57)
> [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> Traceback (most recent call last):
>   File "", line 1, in ?
> ImportError: No module named os
> >>>
>
>

提示不是说了吗,要设置PYTHONHOME变量。


-- 
Best Regards,
Leo Jay

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月12日 星期二 13:33

haur hekun06在gmail.com
星期二 六月 12 13:33:41 HKT 2007

ÒòΪ°²×°ÁËʲô¶«Î÷,²ÅÕâÑùµÄ,
×î½üÖ»°²×°¹ýGeoIP ѽ, Ôõô»áÕâÑùÄô

2007/6/12, Leo Jay <python.leojay在gmail.com>:
>
> On 6/12/07, haur <hekun06在gmail.com> wrote:
> > ´ó¼ÒÓöµ½¹ýÕâ¸ö´íÎóÂð ??
> >
> > [root在as4 ~]# python
> > Could not find platform independent libraries 
> > Could not find platform dependent libraries 
> > Consider setting $PYTHONHOME to [:]
> > 'import site' failed; use -v for traceback
> > Python 2.4.4 (#3, Jun 12 2007, 10:59:57)
> > [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import os
> > Traceback (most recent call last):
> >   File "", line 1, in ?
> > ImportError: No module named os
> > >>>
> >
> >
>
> Ìáʾ²»ÊÇ˵ÁËÂð£¬ÒªÉèÖÃPYTHONHOME±äÁ¿¡£
>
>
> --
> Best Regards,
> Leo Jay
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070612/d30b8d44/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月12日 星期二 15:25

haur hekun06在gmail.com
星期二 六月 12 15:25:49 HKT 2007

shit ,°²×°GeoIP¹ý³ÌÖеÄGLIB°²×°, ¶Ô°²×°ÓÐÖ§³ÖJpagµÄPIL ÓгåÍ»,
Èç´Ë±ä̬µÄ´íÎó,ÕûËÀÀ­


ÔÚ07-6-12£¬haur <hekun06在gmail.com> дµÀ£º
>
> ÒòΪ°²×°ÁËʲô¶«Î÷,²ÅÕâÑùµÄ,
> ×î½üÖ»°²×°¹ýGeoIP ѽ, Ôõô»áÕâÑùÄô
>
> 2007/6/12, Leo Jay <python.leojay在gmail.com>:
> >
> > On 6/12/07, haur <hekun06在gmail.com> wrote:
> > > ´ó¼ÒÓöµ½¹ýÕâ¸ö´íÎóÂð ??
> > >
> > > [root在as4 ~]# python
> > > Could not find platform independent libraries 
> > > Could not find platform dependent libraries 
> > > Consider setting $PYTHONHOME to [:]
> > > 'import site' failed; use -v for traceback
> > > Python 2.4.4 (#3, Jun 12 2007, 10:59:57)
> > > [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> import os
> > > Traceback (most recent call last):
> > >   File "", line 1, in ?
> > > ImportError: No module named os
> > > >>>
> > >
> > >
> >
> > Ìáʾ²»ÊÇ˵ÁËÂð£¬ÒªÉèÖÃPYTHONHOME±äÁ¿¡£
> >
> >
> > --
> > Best Regards,
> > Leo Jay
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070612/787dcafa/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号