python - scons and virtualenv import issue -


i have been working ubuntu 12.04 long time , use scons compile code. using virtualenv (and virtualenvwrapper).

today tried ubuntu 14.04 on vm (future here come :) ).

when run scons (inside virtualenv) failed because can't find package (psutil doesn't matter one). confused because pip installed -r requirements.txt , know psutil there.

to sure tried pip freeze | grep psutil , saw there. after short research found out scons version on 14.04 newer 1 have on 12.04. (2.3.0 , 2.1.0 respectively).

i tried understand can cause such thing happen , saw older scons uses #! /usr/bin/env python while new scons uses #! /usr/bin/python. since have not installed psutil on system python scons fails.

is there better approach modify new scons use #! /usr/bin/env python?


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -