-3

I am using Windows and these are the steps i followed

  1. created a folder by the name projectA
  2. pip install virtualenv
  3. cd projectA
  4. python -m venv env01
  5. now i can see a folder by the name env01 Now my virtual environment is created, When i am trying to activate myb virtual environment, i am getting the following error enter image description here

This is my folder structure

enter image description here

I tried all the following commands, which is resulting in erorr

.\Scripts\activate source venv/bin/activate 

How to activate the Virtual Environment, pls help

5
  • It looks like you're trying to use Linux instructions in a Windows environment. Commented Feb 15, 2024 at 4:40
  • Shouldn't you use command like source env01/bin/activate ? Commented Feb 15, 2024 at 4:43
  • @PurushottamNawale, i get the error 'source' is not recognized as the name of a cmdlet' when i use the above command Commented Feb 15, 2024 at 4:50
  • @PresidentJamesK.Polk, what wud be the windows command to activate the virtual environment? Commented Feb 15, 2024 at 4:57
  • stackoverflow.com/… Commented Feb 15, 2024 at 9:31

1 Answer 1

-2

used the following command, it worked

{environment_folder}\Scripts\activate env01\Scripts\activate 

refered the following blog

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.