osx - jupyter in virtualenviroment sys.path -
jupyter in virtual enviroment doesn't succeed load (import) libraries
i tried print sys.path in virtual enviroment jupyter , terminal , looks different.
how it's possible fix it?
if print sys.path
terminal , jupyter
output different:
from terminal
/users/myname/virtualenv/ker12/lib/python27.zip /users/myname/virtualenv/ker12/lib/python2.7 /users/myname/virtualenv/ker12/lib/python2.7/plat-darwin /users/myname/virtualenv/ker12/lib/python2.7/plat-mac /users/myname/virtualenv/ker12/lib/python2.7/plat-mac/lib-scriptpackages /users/myname/virtualenv/ker12/lib/python2.7/lib-tk /users/myname/virtualenv/ker12/lib/python2.7/lib-old /users/myname/virtualenv/ker12/lib/python2.7/lib-dynload /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7 /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/plat-darwin /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/lib-tk /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/plat-mac /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /users/myname/virtualenv/ker12/lib/python2.7/site-packages
from jupyter
/usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python27.zip /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7 /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/plat-darwin /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/plat-mac /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/lib-tk /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/lib-old /usr/local/cellar/python/2.7.13/frameworks/python.framework/versions/2.7/lib/python2.7/lib-dynload /usr/local/lib/python2.7/site-packages /usr/local/lib/python2.7/site-packages/ipython/extensions /users/myname/.ipython `
it looks, in sys.path jupyter doesn't include paths virtual environment...
Comments
Post a Comment