Shraddhakh / Micro-Projects

0 stars 0 forks source link

'virtualenv'/'activate' is not recognized as an internal or external command, operable program or batch file #1

Closed Shraddhakh closed 3 years ago

Shraddhakh commented 3 years ago

Created virtual enviornment with python -m venv Jan ./activate gives error as :'activate' is not recognized as an internal or external command, operable program or batch file

Shraddhakh commented 3 years ago

For visual studio code settings, go to File -> Preferences -> Settings -> Extensions -> Scroll down and find "Edit in settings.json". and restart the visual studio code Before : "terminal.integrated.shellArgs.windows": null After: "terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "Bypass"]

The reason is that, in build command line integrations like visual studio code, you need to set the command line policies by your self. By setting the above configurations, the visual studio code will do that for you.

Screenshot (26)