我正在AWS ec2上運行ubuntu 10.04虛擬機。下面當我運行「pip install -r requirements.txt」時,virtualenv未激活
是發生在我身上:
source bin/activate
(env)$ pip install -r requirements.txt
(env)$ yolk -l # no package was installed in my env
deactivate
$ yolk -l # all packages were installed into /usr/lib and /usr/local
source bin/activate
(env)$ pip install simplejson==2.3.0
(env)$ yolk -l # simplejson was installed in my env
側的問題是我怎麼能移除所有的包不是我的ENV。
@ dm03514 pip freeze顯示與yolk -l相同的軟件包。 –
嘗試'哪個python'來查看哪個python正在運行。也許你的'bin/activate'不能正常工作。 – Rod
@Rod「deactivate - > which python - >/usr/bin/python」,「source bin/activate - > which python - >/directory/to/env/bin/python」。 –