在使用MySQLdb包后,导入测试时发现一个警告。

删除Python UserWarning[已解决]

/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

 

相关文章:

  • 2021-12-02
  • 2021-11-24
  • 2022-12-23
  • 2021-11-20
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2021-12-29
  • 2022-01-19
  • 2022-12-23
  • 2021-11-30
  • 2021-08-26
相关资源
相似解决方案