How do I activate a venv in python ?

Janco Bester 0 Reputation points
2024-03-08T11:17:35.76+00:00

I want to activate my venv in windows 11.
I run .\venv\scripts\activate and it fails. Please help (Yes the directory is there)

The error:

At line:1 char:1

  • .\myenv\Scripts\activate
  • 
        + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    
        + FullyQualifiedErrorId : UnauthorizedAccess  
      
    

This is where I am clicking click in the directoies

pwd: terraform-integrations-1.0.0-beta

ls:

d----- 3/8/2024 12:58 PM install_tf_scripts

d----- 3/8/2024 1:07 PM lambda_function

d----- 3/8/2024 1:07 PM myenv

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.