0
1

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.

Pythonのエラー集

0
Posted at

import cv2でModuleNotFoundError: No module named 'cv2'

対応するモジュールが入ってないことが原因

pip3 install opencv-python

で解決

GoogleColabのセッション切れ対策

function ClickConnect(){
  console.log("60sごとに再接続");
  document.querySelector("colab-connect-button").click()
}
setInterval(ClickConnect,1000*60);

デベロッパーツール>コンソールで上記コードを記述して、Enter。
そうすると、60秒ごとに再接続をしてくれます。

※Pythonのエラーではないが...

Pycharmでpip installできない時の対応方法

Preferences>Project:xxxxxx>Python interpreter>+ボタンから検索して追加

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?