首页 > 编程语言 > 详细

删除Python UserWarning[已解决]

时间:2015-06-02 14:55:56      阅读:362      评论:0      收藏:0      [点我收藏+]

在使用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

 

删除Python UserWarning[已解决]

原文:http://www.cnblogs.com/ishell/p/4546135.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!