平常用到的conda環境激活命令:source activate python3,在設置crontab定時任務時,提示錯誤:
source: activate: file not found
環境:centos 7.6
原因:找不到conda的activate路徑。在使用source activate python3命令時,實際上調用了“activate”這個文件。
解決:找到activate的路徑,比如我的路徑在:/root/anaconda3/bin/activate;然後在shell文件裏採用全路徑調用activate:source activate python3.
歡迎關注個人網站:lichangsong.win
我的又大又全又便宜的某寶資料鋪:
緮置這行話¥PCYX1QCAm9R¥轉移至淘宀┡ē【碼世界資料鋪】;或https://m.tb.cn/h.V6uwZ9I?sm=916410 點擊鏈街,再選擇瀏..覽..噐dakai