Unable to activate virtual environment

‘myenv\Scripts\activate’ is not recognized as an internal or external command,
operable program or batch file.

@sjteckers1 try using myenv/Scripts/activate

tried it also but getting same error
‘myenv’ is not recognized as an internal or external command,
operable program or batch file.

have you installed virtual env. correctly?
check name of virtual environment
if the problem remains same then try reinstalling virtual env. again with some other name

how to install it correctly?

if you’re using windows then open cmd in the folder in which you.re working and then write
python -m venv myvenv

again same error
‘myvenv’ is not recognized as an internal or external command,
operable program or batch file.
ls command is also not recognised

can you send me a screenshot?

C:\Users\SHIVANSHU\Desktop\new_bot>myenv/Scripts/activate
‘myenv’ is not recognized as an internal or external command,
operable program or batch file.

you installed myvenv and you are passing the command myenv?
its a typo error i think try one more time with myvenv

C:\Users\SHIVANSHU\Desktop\new_bot>myvenv/Scripts/activate
‘myvenv’ is not recognized as an internal or external command,
operable program or batch file.

sorry bro no idea then :frowning:

Hey @sjteckers1, did you try to follow the steps that sir have followed in the video ? I request you to watch the video again and follow the steps correctly !

Thanks !

Yes i have performed all the steps but its saying command not found

Hey @sjteckers1, I request you to go through this blog. Please see that the output shown in this blog matched with every command you follow. If there is a mismatch…Do tell me here.

Don’t worry your problem will be solved soon .

I hope this helps !
Happy Learning :slight_smile:

do i need to install linux?

No no just start following the steps from python…below linux it’s given

now getting this
C:\Users\SHIVANSHU\Desktop\new_bot>virtualenv env
‘virtualenv’ is not recognized as an internal or external command,
operable program or batch file.

Hey can you please attach screenshots of the commands you have run in your command prompt ? It is difficult to find one small mistake that’s happening here.