Python 3.10.6 ~ (venv) fix PowerShell : running scripts is disabled. ( Windows 11x64 | VSCode )

Аватар автора
Python: революционное программирование
[ EN ] When creating a venv and executing the Activate.ps1 file, PowerShell returns an error: "it cannot be loaded because script execution is disabled on this system... blablabla", PowerShell script execution is disabled for security. Let&solve... [ STEPS ] To solve this problem it is necessary to run PowerShell as Administrator, paste the command I left in the comments "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned" press the Enter key, then the A key "[A] Yes to All"... Enter key... and it is solved. .. now, repeat the activation... "...ScriptsActivate.ps1" and your venv is activated. [ PTBR ] Ao criar uma venv e executar o arquivo Activate.ps1, o PowerShell return um erro : "não pode ser carregado porque a execução de scripts está desabilitada neste sistema... blablabla", a execução de scripts PowerShell fica desabilitada por segurança. Vamos solucionar... [ PASSOS ] Para solucionar esse problema é necessário executar o PowerShell como Administrador, colar o comando que deixei nos comentários ( Set-ExecutionPolicy -ExecutionPolicy RemoteSigned ) pressionar a tecla Enter, em seguida a tecla A "[A] Yes to All"... tecla Enter... e está resolvido... agora, repita a ativação... "...ScriptsActivate.ps1" e sua venv está ativada.

0/0


0/0

0/0

0/0