How to add folder to search path for a given Anaconda environment?

后端 未结 1 1890
长情又很酷
长情又很酷 2020-12-24 14:41

I am developing a project in Python and I want to include some own modules which are not on the regular Python search path and I want to add them. However, I want to do this

相关标签:
1条回答
  • 2020-12-24 15:43

    You can use

    conda develop <directory>
    

    This will write a conda.pth file to the environment's site-packages directory which will cause your directory to be added to the sys.path.

    0 讨论(0)
提交回复
热议问题