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.
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.