I started virtualenv on Mac OS, then unable to deactivate it completely

I started virtualenv on my Mac OS, using the commands

python -m virtualenv envsp
source env/bin/activate

Then it was successfully activated.

Then I entered exit, and I got a response which says

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]

And I could not type anymore.

So, I opened another terminal and tried basic commands such ls rm nano, now it keeps saying

-bash: ls: command not found

I am not sure what have I done. And I can't seem to find any solution to this. So if anyone has any clue about this. Please Please Please help!

One more important information cd command works however.

3

1 Answer

You mixup exit of the shell and deactivate of virtualenv. If you activate a python virtualenv and you want to continue using the shell, then enter deactivate. If you are done for the day with your shell, then exit it.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like