Skip to content

Instantly share code, notes, and snippets.

@mikecharles
Created September 2, 2016 12:52
Show Gist options
  • Save mikecharles/cd26f337bc47d7a9aec6127990f25211 to your computer and use it in GitHub Desktop.
Save mikecharles/cd26f337bc47d7a9aec6127990f25211 to your computer and use it in GitHub Desktop.
Fix Python namespace package not working with pip install --editable / python setup.py develop

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('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment