Closed limaolin1981611 closed 4 years ago
According to https://docs.conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#using-conda-in-windows-batch-script-exits-early, I have solved the problem. I changed to commands as follows: E: cd Project\SAR\opendrift-master CALL conda activate opendrift python leeway_fun.py pause
Good. Thanks for sharing the solution.
I have installed the Anaconda correctly and added the envionment variables to the Path. Then, I can use cmd to run the leeway demo step by step. But if I write all commands in the bat file, it's not worked. How Can I use the bat file to run the leeway demo automatic. The commands of bat file are as follows:
E: cd Project\SAR\opendrift-master conda activate opendrift pause python leeway_fun.py pause