Virtualenv says "root" instead of virtualenv?

For a while I used virtualenv for many python projects. When I tried to activate one of my virtual ones, I typed:

source venv/bin/activate

Usually this trick. However, instead of my command prompt:

(venv)me@example:~/

It says:

(root)me@example:~/

My python version requirement and my packages that I installed on virtualenv are not recognized. Why is this happening?

+4
source share
2 answers

Try:

source activate venv

(instead of source venv/bin/activateor ./venv/bin/activate.shetc.)

THundtMac$ source activate venv
(venv) THundtMac$ source deactivate
THundtMac$ . ./venv/bin/activate
(root) THundtMac$ source deactivate
THundtMac$

I think this is due to the use of Anaconda against the protocol-based version. (Now I use the installed cond.)

+1
source

bin : source ./activate : source activate .

, "" ( "root", pip virtualenv "base", conda virtualenv), ,

0

Source: https://habr.com/ru/post/1680998/


All Articles