python - Pip-installed module does not import -


here problem: work, need to set environment sourcing script. script setting virtual environment not aware of.

until needed use django module did not have. used pip install module. did not work, got error message importerror: no module named django investigated why. found out, using virtualenv.

here sys.path:

['',  '/home/user/myenv/release/lib/linux_x86_64/debug',  '/home/user/myenv/tools', '/home/user/myenv/tools/virtualenv/lib/python27.zip',  '/home/user/myenv/tools/virtualenv/lib/python2.7', '/home/user/myenv/tools/virtualenv/lib/python2.7/plat-linux2', '/home/user/myenv/tools/virtualenv/lib/python2.7/lib-tk', '/home/user/myenv/tools/virtualenv/lib/python2.7/lib-old', '/home/user/myenv/tools/virtualenv/lib/python2.7/lib-dynload', '/home/user/myenv/tools/python/lib/python2.7', '/home/user/myenv/tools/python/lib/python2.7/plat-linux2', '/home/user/myenv/tools/python/lib/python2.7/lib-tk', '/home/user/myenv/tools/virtualenv/lib/python2.7/site-packages'] 

if try install django again, message pip

$ pip install django requirement satisfied (use --upgrade upgrade): django in /home/usr/myenv/tools/virtualenv/lib/python2.7/site-packages cleaning up... 

my question why , how fix use django?

update

i have tried running source /home/user/myenv/tools/virtualenv/bin/activate , install django pip. no difference.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -