If one wants to import from a python module or a package that is stored or is being developed locally to other local module to have no import problems and not to have to play manually with PATH or PYTHONPATH or deal with absolute/relative import issues one should install it. These are my notes on how to do it successfully on Windows using conda environment.
To import local python module to a sibling or a totally different (unrelated) directory.
There are two modules: module_a
and module_b
. Both modules are stored locally, but in different, unrelated directories. One wants to import a some_function()
from module_a
to module_b
. The drama takes place on Windows operating system, also a conda environment is to be used.