Linux安装Python-MySQL 遇到(set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).

来源:互联网 发布:arttemplate 写js语法 编辑:程序博客网 时间:2024/05/21 17:15

Linux安装Python-MySQL ,运行时,有如下warning出现:


/usr/local/lib/python2.7/site-packages/setuptools-12.4-py2.7.egg/pkg_resources/__init__.py:1224: UserWarning: /home/zxx/.
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代码所在的目录,例如,我的Python代码在 /home/zhang 下


cd /home/zhangchmod g-wx,o-wx .python-eggs/


就是给个权限

0 0
原创粉丝点击