4

I started virtualenv on my macOS, using these 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.

One more important information cd command works however.

Giacomo1968
  • 58,727

1 Answers1

0

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.

bbaassssiiee
  • 1,525