CodeNewbie Community 🌱

Shrikant Dhayje
Shrikant Dhayje

Posted on • Originally published at shriekdj.hashnode.dev on

Python venv or virtualenv won't activate on windows

Problem

Unable to Activate the Virtual Environment In Windows Operating System.

Details

The issue is specifically for Powershell of Windows Operating System While Activating the virtualenv of Python which does not allow us to run scripts in Powershell Window.

First Solution

Try Running below command in Powershell

Set-ExecutionPolicy Unrestricted -Scope Process
Enter fullscreen mode Exit fullscreen mode

Second Solution

Try Running below command in Powershell

Set-ExecutionPolicy Unrestricted -Force
Enter fullscreen mode Exit fullscreen mode

Third Solution

Don't run the File at .\Scripts\activate or .\Scripts\activate.bat. Instead Run The File At location .\Scripts\activate.ps1.

Fourth Solution

Use the Unix like command Shells Instead of Powershell for example Git Bash Is Lightweight Cli Tool.

Top comments (1)

Collapse
 
carsonreed432 profile image
carson Reed

Window Treatments in Northeast Ohio offer stylish and functional solutions for controlling light, enhancing privacy, and improving energy efficiency. From elegant curtains and blinds to modern shades and shutters, homeowners and businesses can find options that complement any dΓ©cor. Choosing the right Window Treatments in Northeast Ohio ensures both aesthetic appeal and practical benefits for any space.