首页 > 解决方案 > 安装 Anaconda 后控制台(powershell 和 CMD)中的 CreateFile() 错误

问题描述

安装 Anaconda 后,我的控制台中总是显示一些错误消息,包括 CMD 和 PowerShell。删除 Anaconda 后,这些错误消息将消失。

谁遇到同样的问题并知道如何解决?

非常感谢!

环境:

  1. 视窗 10 64 位 v1903
  2. Anaconda3-2019.10-Windows-x86_64
  3. 或 Anaconda3-2019.10-Windows-x86

PowerShell 启动时的错误消息

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

CreateFile() Error: 5
CreateFile() Error: 5
PS C:\windows\system32> CreateFile() Error: 5
CreateFile() Error: 5

使用 Anaconda 安装的 python 解释器调试 python 文件时的错误消息

Microsoft Windows [Version 10.0.18362.175]
(c) 2019 Microsoft Corporation. All rights reserved.

c:\xm\github\python-study>C:/ProgramData/Anaconda3/Scripts/activate
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5
CreateFile() Error: 5

标签: powershellcmdanaconda

解决方案


推荐阅读