VScode writing python program error Module'torch' has no'from_numpy' memberpylint(no-member)

Add a line of code to the settings.json file to solve the problem

{
    "python.pythonPath": "E:\\anaconda\\python.exe",
    "python.linting.pylintPath":"E:\\anaconda\\pkgs\\pylint-1.8.4-py36_0\\Scripts\\pylint"
}

 

Guess you like

Origin blog.csdn.net/zl1107604962/article/details/101051338