inches解决Win下使⽤.bat时condaactivatepython虚拟环境⽆效的问
题
儿童故事mp3下载在Win下运⾏.bat⽂件时,我需要激活pytorch_gpu这个虚拟环境,但是在.bat ⽂件中直接输⼊conda activate xxx来激活python虚拟环境,运⾏到这⼀⾏就没有下⽂。respon
jcg
原来的.bat⽂件如下
icposiuactivate
conda activate pytorch_gpu
cd D:\Pointnet_Pointnet2_pytorch-master\Pointnet_Pointnet2_pytorch-masterreact
python train_partg.py --model pointnet2_part_g_msg --normal --log_dir pointnet2_part_g_msg
其实并不需要运⾏激活虚拟环境的代码,直接使⽤虚拟环境下的 就可以运⾏
{path to virtual environment directory}\ yourpath\file.py
ill be missing you
最后的bat⽂件修改为:
white lieroyal maild:
cd D:\Pointnet_Pointnet2_pytorch-master\Pointnet_Pointnet2_pytorch-master
C:\Urs\Anaconda3\envs\pytorch_ test_partg.py
运⾏.bat,成功