删除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

 

你可能感兴趣的:(python)