Azure / Azure/MachineLearningNotebooks
Failed to install opencv in a step of a pipeline
- 主要語言
- Jupyter Notebook
- 星號
- 4.4k
- 分支
- 2.6k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I am trying to make a trining step for a pipeline where I need open cv, I have manage to install it in the environment but for some reason it doesn't find it.
My error:
Execution failed. User process '/azureml-envs/azureml***/bin/python' exited with status code 1. Please check log file 'user_logs/std_log.txt' for error details. Error: Traceback (most recent call last):
File "train.py", line 8, in
import cv2
File "/azureml-envs/azureml***/lib/python3.8/site-packages/cv2/__init__.py", line 181, in
bootstrap()
File "/azureml-envs/azureml***/lib/python3.8/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/azureml-envs/azureml***/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
# I have also tried with regular import opencv-python
my yml:
name: train_env
channels:
- conda-forge
dependencies:
- python=3.8.1
- ipykernel
- PyYAML
- requests
- tqdm
- pip
- pip:
- opencv-python-headless
- azureml-defaults
- torch
- torchvision
- ultralytics
- matplotlib
- pandas
- pyarrow
- Pillow
- onnx
- pathlib
- numpy
- requests
- scipy
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從提供的 environment yml 和 train.py 開始,然後重現匯入 cv2 的 Azure Machine Learning pipeline 步驟。檢查缺少 libGL.so.1 錯誤附近的環境記錄;當 pipeline 環境能夠匯入 cv2 並繼續通過該訓練步驟時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- azure, opencv, python
- 領域
- cloud, machine-learning
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100