命令行import torch正常,但pycharm中显示“No module named torch”,解决方法:
Step1:查看python路径,linux中使用“which python”,windows中使用“where python”:
Step2:新建一个相同的工程。
Step3:
Step4:OK
命令行import torch正常,但pycharm中显示“No module named torch”,解决方法:
Step1:查看python路径,linux中使用“which python”,windows中使用“where python”:
Step2:新建一个相同的工程。
Step3:
Step4:OK