Python 鏈接 Mysql 操做異常

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).python

  warnings.warn(msg, UserWarning)shell


權限問題:ide

修改下文件的權限就行了。code

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


原文解決辦法:http://stackoverflow.com/questions/17626694/remove-python-userwarning rem

相關文章
相關標籤/搜索