自己做的网页怎么上传到网站,一个空间安装多个网站,广东建筑企业100强,商丘购物网站开发设计在Windows上配置完Anaconda后#xff0c;普遍通过Anaconda Prompt激活虚拟环境并执行Python#xff0c;如下图所示#xff1a; 有时需要连续执行多个python脚本时#xff0c;直接在Anaconda Prompt下可以通过在以下方式#xff0c;即命令间通过连接#xff0c;… 在Windows上配置完Anaconda后普遍通过Anaconda Prompt激活虚拟环境并执行Python如下图所示 有时需要连续执行多个python脚本时直接在Anaconda Prompt下可以通过在以下方式即命令间通过连接不是很方便 Anaconda Prompt中并不支持执行shell命令这里通过Git Bash来执行shell文件即在shell文件中激活Anaconda并执行python脚本 1. 编写shell命令文件名为run.sh内容如下
#! /bin/bash
source D:/ProgramFiles/Anaconda3/etc/profile.d/conda.sh
conda activate ultralytics-envecho train imgsz: 640
python test_yolov8_train.py --yaml datasets/melon_new_detect/melon_new_detect.yaml --epochs 5 --task detect --imgsz 640echo train imgsz: 320
python test_yolov8_train.py --yaml datasets/melon_new_detect/melon_new_detect.yaml --epochs 5 --task detect --imgsz 320echo test finish 其中etc/profile.d/conda.sh为shell脚本文件是conda环境配置的一部分当在Git Bash或其它shell环境中使用conda命令时需要加载此文件。正确加载此文件后其它命令与Anaconda Prompt中相同。 2. 打开Git Bash Here执行run.sh如下图所示 GitHubhttps://github.com/fengbingchun/NN_Test