Virtualenv says "root" instead of the name of virtualenv?

Viewed 3625

For a while, I have been using virtualenv's for many python projects. When I tried to activate one of my virtualenv's, I typed:

source venv/bin/activate

Which generally does the trick. However, instead of my command prompt saying:

(venv)me@example:~/

It says:

(root)me@example:~/

My python version requirement and my packages that I installed on the virtualenv are not recognized. Why does this happen?

2 Answers

Once in the virtual environment bin folder, typing: source ./activate instead of: source activate solved the problem for me.

Please note that the latter command actually activate a "base" environment (called "root" if you use the pip version of virtualenv, and "base" if you use the conda version of virtualenv), and not the environment you are actually trying to activate

Related