0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

インポートエラー from PyQt5 import QtCore,QtGui,QtWidgets

Posted at

かなり何年前から使っているwinPython3.6.6.2が急にインポートエラーが発生している。なにも触っていないのに、急にエラーが発生しました。
キャプチャ.PNG
※import PyQt5は問題ないです。

対策したことをメモします。
1、Lib\site-packages\PyQt5\Qt\bin 下の
  ・QtCore.dll
  ・QtGui.dll
  ・Qt5Widgets.dll
  をpython-3.6.6.amd64のフォルダーにコピー。
 \PyQt5\Qt\plugins下のplatformsフォルダーもpython-3.6.6.amd64のフォルダーにコピー。
  →エラーが消えない。
2、新たなwinpython 3.6.6.2をダウロードし、python3.dllをコピーし、
  上書き保存した。
  →エラーが消えない。
もう駄目だと思って、PCを再起動すると、エラーが消えた。
結局エラーの原因は不明ですが、エラーが消えたので、一応メモします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?