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

cv2: 找不到指定的模块 #215

Closed
epowerstudio opened this issue Dec 30, 2023 · 2 comments
Closed

cv2: 找不到指定的模块 #215

epowerstudio opened this issue Dec 30, 2023 · 2 comments

Comments

@epowerstudio
Copy link

(paddlelabel) PS C:> paddlelabel
Starting PaddleLabel
INFO [paddlelabel.config.19]: Database path: sqlite:///C:\Users\Administrator.
paddlelabel\paddlelabel.db
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\ProgramData\anaconda3\envs\paddlelabel\Scripts\paddlelabel.exe_main
.py", line 7, in
File "C:\ProgramData\anaconda3\envs\paddlelabel\Lib\site-packages\paddlelabel
main.py", line 107, in run
from paddlelabel import api, task
File "C:\ProgramData\anaconda3\envs\paddlelabel\Lib\site-packages\paddlelabel
task_init.py", line 5, in
from .semantic_segmentation import SemanticSegmentation
File "C:\ProgramData\anaconda3\envs\paddlelabel\Lib\site-packages\paddlelabel
task\semantic_segmentation.py", line 10, in
import cv2
File "C:\ProgramData\anaconda3\envs\paddlelabel\Lib\site-packages\cv2_init
.py", line 181, in
bootstrap()
File "C:\ProgramData\anaconda3\envs\paddlelabel\Lib\site-packages\cv2_init
.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\envs\paddlelabel\Lib\importlib_init.py", li
ne 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing cv2: 找不到指定的模块。

完全按照安装指南操作,
conda create -n paddlelabel python=3.11
conda activate paddlelabel
pip install --upgrade paddlelabel
完毕后,运行后有一系列问题,后面引用了PaddlePaddle/PaddleOCR#208 [https://github.com/https://github.com//issues/208]里面的包:
pip install uvicorn==0.14 --no-deps
pip install connexion==2.14.1 --no-deps
pip install anyio==3.0 --no-deps
pip install Werkzeug==2.2.2 --no-deps
pip install starlette==0.21.0 --no-deps
pip install Flask==2.2.2 --no-deps
pip install Flask-Cors==3.0.10 --no-deps
pip install a2wsgi==1.8.0 --no-deps
pip install alembic==1.12.1 --no-deps
再运行:
paddlelabel
提示如上。应该如何解决。3QS

@epowerstudio
Copy link
Author

谁来帮我解决一哈呀。。。3QS

Copy link

github-actions bot commented Mar 5, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

1 participant