- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我不明白自己在做什么错,尝试导入cv2时出现以下错误:
/mnt/jenkins/workspace/project/client/py3env/lib/python3.5/site-packages/opencv_
python-3.4.0.12-py3.5-linuxx86_64.egg/cv2/__init__.py"()
7
8 # make IDE's (PyCharm) autocompletion happy
---->9 from .cv2 import *
10
ImportError: libSM.so.6: cannot open shared object file: No such
file or directory
setup(
name="Modulename",
version="0.1.0",
packages=find_packages(),
install_requires=["numpy", "matplotlib", "tqdm", "opencv-python"],
)
opencv-python == 3.4.0.12
numpy == 1.14.2
matplotlib == 2.2.2
apt update && apt install -y libsm6 libxext6
最佳答案
使用opencv-python-headless软件包而不是opencv-python。这是出于libSM6依赖性。pip install opencv-python-headless
关于python - ImportError:在setup.py中使用setuptools时,libSM.so.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49983013/
我不明白自己在做什么错,尝试导入cv2时出现以下错误: /mnt/jenkins/workspace/project/client/py3env/lib/python3.5/site-packag
在尝试导入 OpenCV 时,使用 import cv2 我收到以下错误: /usr/local/lib/python2.7/dist-packages/cv2/__init__.py in ()
这是我的 python 导入语句 import plotly as py import pandas as pd import numpy as np import plotly.plotly as
我在AWS Elastic beantalk上部署了Django应用,遇到以下错误: ImportError: libSM.so.6: cannot open shared object file:
我有一个要在 Google App Engine 上部署的 Flask 应用程序。一切检查正常,需求文件包含成功安装的所有模块。但到最后我得到这个错误: from .cv2 import * Impo
我正在尝试将 python flask 应用程序部署到谷歌云。应用程序开始运行后,出现以下错误: File "/home/vmagent/app/app.py", line 11, in
我尝试在 Red Hat 6.6 上安装最新版本的 vim。 我使用下面的脚本来运行配置: # change to folder where vim sources are cd ~/vim # he
我是一名优秀的程序员,十分优秀!