简体   繁体   English

得到一个“进程未能启动(无效命令?)。 (1)”启动Pyzo时出错

[英]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:这是我修复它的方式:

  1. I went to 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文件)
  2. Find the Python application查找 Python 应用程序
  3. Rename it to "python.exe"将其重命名为“python.exe”
  4. Then go to shell configuration and replace the path to the operable python program in "exe" with your path (for me it was 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的路径

  1. Go to Shell tab转到外壳选项卡
  2. Press the button that says Python and has a small arrow at the right bottom按下显示Python并在右下角有一个小箭头的按钮
  3. After pressing the button a drop-menu will appear.按下按钮后,将出现一个下拉菜单。 In this meanu choose Edit shell configurations ...在这种情况下,选择编辑外壳配置...

在此处输入图片说明

  1. A new window will open.将打开一个新窗口。 In this window put the correct path in the exe field在此窗口中,在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.

相关问题 当我的启动脚本与 VM 实例一起运行时,出现“net/url:URL 中的无效控制字符”错误 - Getting 'net/url: invalid control character in URL' error when my start up script runs with VM instance 在pyzo上安装枕头时出错 - Error while installing pillow on pyzo 在 Pyzo (Python) 上安装 matplotlib 时出错 - Error on installing matplotlib on Pyzo (Python) 更新Continuum Anaconda后,“ conda”命令返回“无法启动进程” - “conda” command returns “failed to start process” after updating Continuum Anaconda 启动我的 Django 服务器时出现错误 - Getting Error when starting my Django server PyCharm Error when setting remote interpreter -&gt; Run Error: Jupyter server process failed to start due to path mismatch 问题 - PyCharm Error when setting remote interpreter -> Run Error: Jupyter server process failed to start due to path mismatch issue 通过pip安装时,获取命令“ python setup.py egg_info”失败,错误代码为1 - Getting Command “python setup.py egg_info” failed with error code 1 when installing via pip 在RPi 3上启动Google Assistant示例时出现无效的采样率错误 - Invalid Sample Rate Error When Starting Google Assistant Sample on RPi 3 收到错误:“错误:命令'gcc'失败:python中没有这样的文件或目录” - Getting the error: " error: command 'gcc' failed: No such file or directory" in python Python监视进程启动? - Python watching for process start up?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM