删除Python UserWarning[已解决]

在使用MySQLdb包后,导入测试时发现一个警告。

/usr/lib/python2.6/site-packages/setuptools-0.8-py2.6.egg/pkg_resources.py:1054:
UserWarning: /home/sgpromot/.python-eggs is writable by group/others and vulnerable 
to attack when used with get_resource_filename. Consider a more secure location 
(set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
  warnings.warn(msg, UserWarning)

解决方法:

chmod g-wx,o-wx ~/.python-eggs

 

posted on 2015-06-02 13:03  卖火柴的小东东  阅读(3685)  评论(0编辑  收藏  举报

导航