问题:Error running ‘test2’: Cannot run program “\usr\bin\python3.8” (in directory …
pytorch 运行文件
报错:Error running ‘test2’: Cannot run program “\usr\bin\python3.8” (in directory “我的工程路径”): CreateProce
解决方案
pycharm 工具栏
Run --> Edit Configurations --> Python interpreter下,
自己要运行的文件,选择对应的虚拟环境
具体看下面图显示:
![在这里插入图片描述](https://img-blog.csdnimg.cn/c305304b2d57417e958863adc08e39eb.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/68a86d43389e43d9bdc609d82f23b485.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/115503fa53be469e8ebb007216fd879a.png)