Use anaconda environment without activate? (e.g. in Crontab)

后端 未结 2 1577
梦毁少年i
梦毁少年i 2020-12-28 19:19

Being reading this

http://conda.pydata.org/docs/using/envs.html

Is it possible to run a conda python directly without having to source activate xxx

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-28 19:59

    Actually, you can do exactly the same as in venv in miniconda. If path_to_miniconda is your installation dir of miniconda, then

    /path_to_miniconda/envs/name_of_env/bin/python xxx.py

    should work.

提交回复
热议问题