我刚刚MySQLdb
为 Python 2.6 安装了我的包,现在当我使用 导入它时import 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)
有没有办法摆脱这个?