最近在使用Python的时候发现有异常,异常内容为python-eggs is writable ……,详细异常如下:
/usr/local/lib/python2.7/site-packages/setuptools-24.0.2-py2.7.egg/pkg_resources/__init__.py:1268:
UserWarning: /home/hduser06/.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).
最后探讨问题,发现是由于权限问题导致,解决办法:
cd /home/hduser06/
chmod g-wx,o-wx .python-eggs/