Problems using nose in a virtualenv

后端 未结 8 1970
-上瘾入骨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 06:00

    Perhaps this is a recent change, but for me, when I installed nosetests through pip, there was a nosetests executable installed in .virtualenvs/<env>/bin, which (unsurprisingly) operates correctly with the virtualenv.

    0 讨论(0)
  • 2020-12-24 06:02

    In the same situation I needed to reload the virtualenv for the path to be correctly updated:

    deactivate
    env/bin/activate
    
    0 讨论(0)
提交回复
热议问题