前提・実現したいこと
Pythonで画面キャプチャのソースコードを書いたのですが,
プログラムを実行すると以下のエラーが発生しました.
1行目はpillowのページを参考に,from PIL import ImageGrabから変更しています.
tetatail初投稿のため,その他必要な情報がありましたらお知らせください.
発生している問題・エラーメッセージ
Traceback (most recent call last): File "C:\pleiades(Python)\TobiiPro\Experiment\screenshot.py", line 1, in <module> from PIL.Image import core as _imaging File "C:\pleiades(Python)\TobiiPro\Experiment\PIL\Image.py", line 90, in <module> from . import _imaging as core ImportError: cannot import name _imaging
該当のソースコード
Pyhton
1from PIL.Image import core as _imaging 2 3ImageGrab.grab().save("Scr.png") 4
試したこと
上記のエラーで検索をかけていますが,解決方法が見当たりません.
補足情報(FW/ツールのバージョンなど)
実行環境:Eclipse Windows 64bit (2019.09リリースの最新版)
Python: 3.8.0
Pillow:6.2.1
あなたの回答
tips
プレビュー