Skip to content

On Windows, I can't activate my virtual environment #25

@BastienPasdeloup

Description

@BastienPasdeloup

If you get the following error when trying to activate your virtual environment:

venv_project\Scripts\Activate.ps1 : Impossible de charger le fichier
C:\...\venv_project\Scripts\Activate.ps1, car l’exécution de scripts est
désactivée sur ce système. Pour plus d’informations, consultez
about_Execution_Policies à l’adresse https://go.microsoft.com/fwlink/?LinkID=135170.
Au caractère Ligne:1 : 1
+ venv_project\Scripts\Activate.ps1
+ ~~~~~~~~~
    + CategoryInfo          : Erreur de sécurité : (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Just run the following command to enable using script:

Set-ExecutionPolicy Unrestricted -Scope CurrentUser

Then activate your virtual environment again and it should work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    during installationProblems that appear when installing PyRatsolvedThis problem has a solutionwindowsFor issues on Windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions