使用情况:当你使用bat文件调用python执行一个.py文件时
但是执行.py的文件使用了 Anaconda创建的虚拟环境
下面演示了执行 ChatYuan.bat 调用 ChatYuan.py运行
ChatYuan_v5.bat ,bat文件的编码改成ANSI
call activate tensorflow
python ./ChatYuan.py
pause
使用情况:当你使用bat文件调用python执行一个.py文件时
但是执行.py的文件使用了 Anaconda创建的虚拟环境
下面演示了执行 ChatYuan.bat 调用 ChatYuan.py运行
ChatYuan_v5.bat ,bat文件的编码改成ANSI
call activate tensorflow
python ./ChatYuan.py
pause