VS Code 中 torch has no xxx member

File -> Preference -> Settings 

 

搜索

python.linting.pylintPath

 

pylint改为

Win:

XXX/Anaconda3/pkgs/pylint-X.X.X-pyXX_0/Scripts/pylint

Linux:

XXX/Anaconda3/pkgs/pylint-X.X.X-pyXX_0/Bin/pylint

posted @ 2020-03-27 22:22  aimhabo  阅读(46)  评论(1编辑  收藏