[英]Getting a “The process failed to start (invalid command?). (1)” error when starting up Pyzo
I recently booted up my Pyzo IDE with the intention of doing some programming, however, upon starting up the python shell it gave this following error:我最近启动了我的 Pyzo IDE,打算进行一些编程,但是,在启动 python shell 时,它出现了以下错误:
The given path was not found找不到给定的路径
The process failed to start (invalid command?).进程无法启动(无效命令?)。 (1) (1)
I am not able to run any code with this error.我无法运行任何带有此错误的代码。 If I try to run it nothing happens and the error re-appears.如果我尝试运行它,则不会发生任何事情并且错误再次出现。
I have tried reinstalling the whole thing without success, I have tried reading the log but there was no error message and I have also tried looking for posts regarding the same problem without success.我试过重新安装整个事情但没有成功,我试过阅读日志但没有错误消息,我也试过寻找关于同样问题的帖子但没有成功。 I was hoping if someone could explain what my problem is and a possible solution, thanks.我希望有人能解释我的问题是什么以及可能的解决方案,谢谢。
This is how I fixed it:这是我修复它的方式:
miniconda3
file in C:\\Users\\<user>\\Miniconda3
(might be in other file/the thing is you need to find the miniconda3
file)我去miniconda3
文件C:\\Users\\<user>\\Miniconda3
(可能是其他的文件/事情是,你需要找到miniconda3
文件)C:\\Users\\<user>\\Miniconda3\\python.exe
)然后转到shell配置并将“exe”中可操作的python程序的路径替换为您的路径(对我来说是C:\\Users\\<user>\\Miniconda3\\python.exe
)For me the solution was much simpler than the solution proposed.对我来说,解决方案比提出的解决方案简单得多。
I had misspelled the path to python.exe
我拼错了python.exe
的路径
The path for me (windows 7) was c:\\users\\user\\appdata\\local\\programs\\python\\python38\\python.exe
.我(Windows 7)的路径是c:\\users\\user\\appdata\\local\\programs\\python\\python38\\python.exe
。 For other users might be different对于其他用户可能会有所不同
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.