Skip to content
Advertisement

Tag: name-collision

Python package names collision

I have a following project structure: when I run python program_name from top level directory I get an error. It appears, that some of mine dependencies import the package with the same name as mine. Namely I import numpy in __main__.py and, somewhere deep inside, it has import package_name line. So instead of importing its dependency it import my package.

Advertisement