Create a file z.pth in your virtual env's site-packages dir (eg. ~/.conda/envs/<env-name>/lib/python3.5/site-packages) containing this line: import pkg_resources; pkg_resources.fixup_namespace_packages('')