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出现:
解决办法:
进入你Python代码所在的目录,例如,我的Python代码在 /home/zhang 下
就是给个权限
/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/
就是给个权限
相关文章推荐
- tensorflow编译错误Cannot find gcc or CC (gcc -std=gnu99), either correct your path or set the CC environment variable
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- linux下搭建nexus提示then set the environment variable RUN_AS_USER=root
- UNIX / Linux: Set your PATH Variable Using set or export Command
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- 解决Linux下启动Tomcat遇到Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- maven 配置(安装)以及遇到的The JAVA_HOME environment variable is not defined correctly.
- Linux 平台 Oracle 安装 报错 Check if the DISPLAY variable is set 解决方法
- Linux 平台 Oracle 安装 报错 Check if the DISPLAY variable is set 解决方法
- linux下mysql的卸载、安装全过程及遇到"MySQL提示:The server quit without updating PID file问题的解决办法"
- 解决Linux下启动Tomcat遇到Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Linux 平台 Oracle 安装 报错 Check if the DISPLAY variable is set 解决方法
- Eclipse导入Gradle时报错:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable
- How do I set or change the PATH system variable?
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined 原创 2013年07月26日
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- linux安装tomcat Neither the JAVA_HOME nor the JRE_HOME environment variable is defined