HarmonyOS 鸿蒙Next DevEco Device Tool安装失败,"安装离线文件失败。 请检查python环境是否发生破坏"

发布于 1周前 作者 caililin 来自 鸿蒙OS

HarmonyOS 鸿蒙Next DevEco Device Tool安装失败,"安装离线文件失败。 请检查python环境是否发生破坏"

install log部分内容:

RMDir: RemoveDirectory(“D:\DevEco-Device-Tool\core\deveco-venv\Scripts”)

RMDir: RemoveDirectory(“D:\DevEco-Device-Tool\core\deveco-venv”)

RMDir: “D:\DevEco-Device-Tool\core”

RMDir: RemoveDirectory(“D:\DevEco-Device-Tool\core”)

Delete: “D:\DevEco-Device-Tool\install.log”

Delete: DeleteFile(“D:\DevEco-Device-Tool\install.log”)

Delete: DeleteFile failed(“D:\DevEco-Device-Tool\install.log”)

Delete: “D:\DevEco-Device-Tool\uninstall.exe”

RMDir: “D:\DevEco-Device-Tool”

RMDir: RemoveDirectory(“D:\DevEco-Device-Tool”)

RMDir: RemoveDirectory failed(“D:\DevEco-Device-Tool”)

SetFlag: 13=0

MessageBox: 16,“安装离线文件失败。

请检查python环境是否发生破坏

Jump: 1991

Aborting: “”

Call: 831

SetFlag: 2=0

Call: 12178

SetFlag: 13=6

File: overwriteflag=1, allowskipfilesflag=0, name=“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll”

File: skipped: “C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll” (overwriteflag=1)

Call: 12178

SetFlag: 13=6

File: overwriteflag=1, allowskipfilesflag=0, name=“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll”

File: skipped: “C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll” (overwriteflag=1)

Jump: 925

Call: 12178

SetFlag: 13=6

File: overwriteflag=1, allowskipfilesflag=0, name=“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll”

File: skipped: “C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll” (overwriteflag=1)

Call: 12178

SetFlag: 13=6

File: overwriteflag=1, allowskipfilesflag=0, name=“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll”

File: skipped: “C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll” (overwriteflag=1)

Jump: 969

DetailPrint: 2024-12-24 17:12:24 Installation failed

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\linker.dll”)

Delete: DeleteFile on Reboot(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\linker.dll”)

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\modern-header.bmp”)

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\modern-wizard.bmp”)

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\nsDialogs.dll”)

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\nsExec.dll”)

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\NSISpcre.dll”)

Delete: DeleteFile on Reboot(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\NSISpcre.dll”)

Delete: DeleteFile(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp\System.dll”)

RMDir: RemoveDirectory(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp”)

RMDir: RemoveDirectory on Reboot(“C:\Users\PC8935\AppData\Local\Temp\nsl7770.tmp”)

安装报错截屏:

45.png

依赖环境:

46.png


更多关于HarmonyOS 鸿蒙Next DevEco Device Tool安装失败,"安装离线文件失败。 请检查python环境是否发生破坏"的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

”遇到这个问题,开发者可以先终止安装操作,然后从下面两个方面进程初步的排查:

方法一:打开DeviceTool准备安装的目录,清空安装目录下的所有文件,重新进行安装;

方法二:打开任务管理器,找到hos.exe进程,结束任务,重新进行安装。“

已经参考这个尝试过了,方法一文件下只剩下install log,还是不行。方法二:没有hos.exe

更多关于HarmonyOS 鸿蒙Next DevEco Device Tool安装失败,"安装离线文件失败。 请检查python环境是否发生破坏"的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


针对您提到的HarmonyOS 鸿蒙Next DevEco Device Tool安装失败,并出现“安装离线文件失败。请检查python环境是否发生破坏”的问题,以下是一些可能的解决方案:

  1. 检查Python环境:确保系统中已安装的Python版本与DevEco Device Tool兼容。如不兼容,建议卸载当前Python版本,安装一个兼容的版本后再尝试安装DevEco Device Tool。
  2. 清理安装目录:打开DeviceTool准备安装的目录,清空安装目录下的所有文件,然后重新进行安装。
  3. 结束相关进程:打开任务管理器,查找是否有与DevEco Device Tool或Python相关的进程(如hos.exe),如有,则结束这些进程后再尝试安装。

如果上述方法均未能解决问题,可能是由于其他系统或软件冲突导致的。此时,建议您尝试在不同的系统环境或配置下安装DevEco Device Tool。

回到顶部