Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window下pycharm中安装opencv-python后无法使用 #2

Open
ghost opened this issue Jan 1, 2018 · 4 comments
Open

window下pycharm中安装opencv-python后无法使用 #2

ghost opened this issue Jan 1, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 1, 2018

Traceback (most recent call last):
File "D:/Workspaces/PythonProjects/testjwxt/jump.py", line 2, in
import cv2
File "D:\Workspaces\PythonProjects\testjwxt\venv\lib\site-packages\cv2_init_.py", line 4, in
from .cv2 import *
ImportError: DLL load failed: 找不到指定的模块。

@moneyDboat
Copy link
Owner

你试试在命令行中python能不能import cv2,我觉得可能是Pycharm的Python环境没配置好

@Darkxiete
Copy link

python3.dll文件缺失 自己去下载一个复制就行

@AbdielNie
Copy link

Traceback (most recent call last):
File "E:/demo/main.py", line 1, in
import cv2
ModuleNotFoundError: No module named 'cv2'
那这样的错误呢

@moneyDboat
Copy link
Owner

opencv-python模块没装好
试试pip install opencv-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants