Unexpected Python Paths in Conda Environment
When using a Conda environment, you may encounter an unexpected ordering of directories in the Python path, with local non-Conda paths taking precedence over Conda counterpart packages. This behavior, described in PEP 370, prioritizes packages installed at the user level, preceding those installed in the prefix site (e.g., Conda).
Options for Prioritizing Conda Packages
To avoid loading user-level site-packages, you have several options:
Alternative Granular Options
For more granular control, consider the following packages:
These options allow you to tailor the Python path configuration to meet your specific needs and ensure proper package precedence within Conda environments.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3