0
我已經通過pip安裝opencv pip install opencv-python
並且它已成功安裝,但是當我嘗試導入它時,顯示爲The specific module could not be found
。 Opencv通過pip安裝,但無法在cmd中導入
這是OpenCV的的初始化的.py代碼
import sys import os #FFMPEG dll is not found on Windows without this os.environ["PATH"] += os.pathsep + os.path.dirname(os.path.realpath(file)) from . import cv2 sys.modules['cv2'] = cv2