Unexpected python paths in conda environment
This is expected behavior (see PEP 370) and partially why Anaconda recommended against user-level package installations. The site module is responsible for setting the sys.path when Python is initializing. The code in site.py specifically appends the user site prior to appending the prefix site, which is what leads to this prioritization. The motivation according to … Read more