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 running file
error: Error running 'test2': Cannot run program "\usr\bin\python3.8" (in directory "my project path"): CreateProce

solution


Under the pycharm toolbar Run --> Edit Configurations --> Python interpreter,
select the file you want to run and select the corresponding virtual environment.
See the figure below for details:
Insert image description here
Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43658159/article/details/126980871