'\env\Scripts\activate.bat : The term '\env\Scripts\activate.bat'
is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1 \env\Scripts\activate.bat
CategoryInfo : ObjectNotFound: (\env\Scripts\activ ate.bat:String) [], CommandNotFoundExceptionfullyQualifiedErrorId : CommandNotFoundException'
我会做一些假设,如果他们错了,你可以让我知道。您在 Windows 上(因为您正在运行批处理文件)并且您正在 vs 代码的终端中运行它。
尝试只输入env\Scripts\activate
.
这是因为 .bat 文件在 windows 命令提示符下运行,但 vs code 的终端是 PowerShell,它无法识别批处理文件(PowerShell 使用 .ps1 文件)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句