python35&&python27在windows启动时报错解决方案

cmd>python3

Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named ‘encodings‘

Current thread 0x00001f28 (most recent call first):

cmd>python2

No modules named XX

原因:环境变量更改后造成的问题。需要修改环境变量增加一些路径:

%python35%

D:\Program Files\Python35\Scripts\;D:\Program Files\Python35\;D:\Program Files\Python35\Lib;D:\Program Files\Python35\Lib\site-packages;D:\Program Files\Python35\DLLs

%python27%

D:\Program Files\Python27\;D:\Program Files\Python27\Scripts;D:\Program Files\Python27\Lib;D:\Program Files\Python27\Lib\site-packages;D:\Program Files\Python27\DLLs

在环境变量中增加之后完美生效

时间: 2024-07-31 23:18:49

python35&&python27在windows启动时报错解决方案的相关文章

Reporting Service 服务启动时报错The service did not respond to the start or control request in a timely fashion

案例环境: 启动一台数据库服务器(Windows Server 2003)的Reporting Service(SQL Server 2008 R2)服务时,出现如下错误信息: System.InvalidOperationException: Cannot start service ReportServer on computer 'xxx'. ---> System.ComponentModel.Win32Exception: The service did not respond to

Tomcat启动时报错:java.net.BindException: Permission denied <null>:80 【转载】

本文转载自: http://blog.sina.com.cn/s/blog_4550f3ca0101g37l.html 问题起因:做负载均衡时需要将Web工程与Wap工程同时部署在一台Suse服务器上,为方便日后维护,我们分别为Web工程与Wap工程分配了不同的用户进行部署,并且端口使用分别为8080与80,Web工程使用默认8080端口,Tomcat正常启动并能正常访问,Wap工程使用80端口(修改server.xml),Tomcat启动一系列错误(见问题描述). 问题描述:Tomcat启动时

新安装的soapui启动时报错及解决方法

今天新安装了soapui准备测试一下接口,结果安装成功后启动时报错:The JVM could not be started. The maximum heap size (-Xmx) might be too large 意思就是:Java虚拟机无法启动.Xmx可能太大 这时就需要将这个参数的值改小一点. 经过排查这个参数在soapui安装目录\bin\目录下的vmoptions配置文件中 将原来的值改为800,保存后启动成功

Eclipse启动时报错

Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:- 此问题起于我在Ubuntu装了两个版本的eclipse:java8和java7:卸载前者后出现启动不了ecli

android启动时报错Unable to instantiate application xxxx:java.lang.NullPointerException

如果程序已经运行,再安装到手机的时候总是报以下错误.而且是在打开特定的Activity的情况下才会报错. 06-26 09:45:16.971: E/AndroidRuntime(29733): java.lang.RuntimeException: Unable to instantiate application com.css.promotiontool.ui.CSSAppliction: java.lang.NullPointerException06-26 09:45:16.971:

Sass for循环中编译%时报错解决方案

sass功能强大,特别是支持for循环,节省大量开发时间,但是在开发时遇到一个问题,直接使用%时没有问题,当有变量时再加% 单位在编译时报错: 这样没有问题: @for $width from 0 to 10{ .wp#{$width}{ width:$width px; } } 但是这样就有问题了: @for $width from 0 to 10{ .wp#{$width}{ width:$width%; } } 或者这样: @for $width from 0 to 10{ .wp#{$w

Spacemacs启动时报错:Symbol's funciton definition is void: cl-struct-define

解决方法很简单:删除.emacs.d/elpa/ 目录下面所有的*.elc文件. 原因:elc是el文件的预编译文件,类似py文件的pyc文件,是一种二进制文件,不同版本的emacs是不兼容的. 所以删掉所有的elc文件后重新运行emacs就可以了. 方法: cd ~/.emacs.d/elpa rm -r **/*.elc Spacemacs启动时报错:Symbol's funciton definition is void: cl-struct-define

MyEclipse for Spring启动时报错"An internal error occurred during: 'Updating indexes'.Java heap space"的解决办法

问题 MyEclipse for Spring在启动时,报如下错误:An internal error occurred during: 'Updating indexes'.Java heap space 解决办法 对于这种问题,可以采用禁止MyEclipse的updating indexes的方法来解决. Window -> Preferences -> Myeclipse -> Maven4Myeclipse,禁用Download repository index updates

Mysql启动报错解决方案:Failed to open log (file './mysql-bin.000901', errno 2)

ps -ef|grep mysql 发现里边没有mysql进程,于是进行重启. service mysqld start报错 查看错误日志 tail -100 /usr/local/mysql/var/iZ11yohng9aZ.err(主机名.err) 180223 15:31:51 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var 180223 15:31:51 InnoDB: The Inn