“ ImportError:DLL加载失败”和“ ImportError:无法导入名称”之间有什么区别?

时间:2018-09-11 12:30:28

标签: python python-3.x

声明

"list": [
{
  "dt": 1487242800,
  "temp": {
    "day": 286.67,
    "min": 272.78,
    "max": 286.67,
    "night": 273.34,
    "eve": 277.05,
    "morn": 281.56
  },
  "pressure": 972.73,
  "humidity": 75,
  "weather": [
    {
      "id": 800,
      "main": "Clear",
      "description": "sky is clear",
      "icon": "01d"
    }
  ],
  "speed": 1.81,
  "deg": 248,
  "clouds": 0
}
]

产生from PyQt5 import QtWidgets ,但语句

ImportError: DLL load failed: The specified module could not be found.

产生from PyQt5 import sdklfjsdlfkj 。这让我感到困惑,因为这与第一个代码段中的尝试从 ImportError: cannot import name 'dfgdfgdfg'中导入内容不同。我的意思是,QtWidgets模块是存在的还是不是?

怎么可能在其中有足够的空间来避免QWidgets,又没有足够的空间来导入它?

0 个答案:

没有答案