Python 连接 Mysql 操作异常

原创
2015/02/07 14:26
阅读数 3.1K

UserWarning: /home/toddler/.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


原文解决办法:http://stackoverflow.com/questions/17626694/remove-python-userwarning


展开阅读全文
加载中
点击加入讨论🔥(1) 发布并加入讨论🔥
1 评论
2 收藏
0
分享
返回顶部
顶部