Problems using nose in a virtualenv

后端 未结 8 2006
-上瘾入骨i
-上瘾入骨i 2020-12-24 04:57

I am unable to use nose (nosetests) in a virtualenv project - it can\'t seem to find the packages installed in the virtualenv environment.

The odd thing is that i ca

8条回答
  •  被撕碎了的回忆
    2020-12-24 05:40

    You might have a nosetests that is installed somewhere else in your PATH with higher priority than the one installed in your virtualenv. A quick way to give the nose module and associated nosetests script installed in your current virtualenv top priority is to edit your PATH:

    export PATH=/path/to/current/virtualenv/bin:$PATH
    

提交回复
热议问题