pycharm报错:Error running ‘test2‘: Cannot run program “\usr\bin\python3.8“ (in directory ....

问题: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下,
自己要运行的文件,选择对应的虚拟环境
具体看下面图显示:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43658159/article/details/126980871