【Deepin 20系统】Linux系统VScode解决Module ‘torch‘ has no ‘cat‘ member

冷不防 2022-11-04 11:25 300阅读 0赞

问题

环境

python 3.8

Vscode报错Module ‘torch’ has no ‘cat’ member

解决

找到anaconda下的pylint安装目录

/home/mgege007/anaconda3/pkgs/pylint-2.6.0-py38_0/bin

在VScode的preferences–>setting搜pyintpath,找到pylint Path,添加以上路径保存即可
在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,300人围观)

还没有评论,来说两句吧...

相关阅读