1、打开vscode设置

vscode中解决Module 'torch' has no 'randn' member

2、在设置的搜索窗口搜索:python.linting.pylintPath

vscode中解决Module 'torch' has no 'randn' member

3、更新Pylint Path路径,然后ctrl+s 完成

vscode中解决Module 'torch' has no 'randn' member

4、如何找到pylint-2.4.2的路径?

可以下载个everything,然后直接在搜索框里面搜索。(这个软件搜索速度很快)

vscode中解决Module 'torch' has no 'randn' member

相关文章:

  • 2022-12-23
  • 2021-03-27
  • 2022-12-23
  • 2021-06-30
  • 2021-05-23
  • 2021-08-04
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-06-16
  • 2021-12-21
  • 2021-12-03
  • 2021-06-27
相关资源
相似解决方案