How do I add a folder to the search path for this Anaconda environment?

I am developing a project in Python and I want to include some native modules that are not in the normal Python search path, and I want to add them. However, I want to do this only for the Anaconda environment that I use during development, and I would like them to stay there over time (that is, when I restart the environment, I want the search path to have this folder) .

Thanks!

+8
python anaconda
source share
1 answer

you can use

conda develop <directory> 

This will write the conda.pth file to conda.pth site’s site directory, which will add your directory to sys.path .

+11
source share

All Articles