您的位置:首页 > 运维架构 > Linux

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

2015-03-20 11:19 615 查看
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/zhang

chmod g-wx,o-wx .python-eggs/


就是给个权限
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐