尝试设置Python venv,但在PowerShell中遇到此问题。 venv能够以cmd正常激活。我尝试以管理员身份运行shell,但这也不起作用。有没有解决这个问题?
澄清:
当我运行命令时:PS C:\> <venv>\Scripts\Activate.ps1
我收到以下消息:
Get-Process : Cannot find a process with the name "C:\> <venv>\Scripts\ Activate.ps1". Verify the process name and call the cmdlet again. At line:1 char:3 + PS <<<< C:\> <venv>\Scripts\Activate.ps1 + CategoryInfo : ObjectNotFound: (C:\> <venv>\Scripts\Activate.ps1:String) [Get-Process], ProcessCommand Exception + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand