![]() |
狂野的麦片 · Descriptive ...· 6 月前 · |
![]() |
另类的饭盒 · [WPF]带下拉列表的文本框 - 东邪独孤 ...· 8 月前 · |
![]() |
想出家的绿茶 · 使用地理处理服务—ArcGIS ...· 1 年前 · |
![]() |
魁梧的小蝌蚪 · 《地球最后的导演》平遥首映,《宇宙探索编辑部 ...· 1 年前 · |
当我执行这个命令时:
pip3 install opencv-python
我得到以下错误:
Installing build dependencies ... error ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/lib/python3/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-z4c_sn6u/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.11.3; python_version=='"'"'3.5'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"'' cwd: None
Complete output (22 lines):
Ignoring numpy: markers 'python_version == "3.5"' don't match your environment
Ignoring numpy: markers 'python_version == "3.6"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7"' don't match your environment
Collecting setuptools
Downloading setuptools-49.6.0-py3-none-any.whl (803 kB)
Collecting wheel
Downloading wheel-0.35.0-py2.py3-none-any.whl (24 kB)
Collecting scikit-build
Using cached scikit_build-0.11.1-py2.py3-none-any.whl (72 kB)
Collecting cmake
Using cached cmake-3.18.0.tar.gz (28 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-95tsmt_u/cmake/setup.py'"'"'; __file__='"'"'/tmp/pip-install-95tsmt_u/cmake/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-95tsmt_u/cmake/pip-egg-info
cwd: /tmp/pip-install-95tsmt_u/cmake/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-95tsmt_u/cmake/setup.py", line 7, in <module>
from skbuild import setup
ModuleNotFoundError: No module named 'skbuild'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-z4c_sn6u/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.11.3; python_version=='"'"'3.5'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"'' Check the logs for full command output.
同样,当我试图安装ecapture时,我正在使用最新的python版本
发布于 2020-08-14 10:03:18
尝试升级您的pip
pip install --upgrade pip
然后运行
pip install opencv-python
发布于 2020-08-14 10:05:10
pypi网站上的安装和使用指南如下
Pip安装在ModuleNotFoundError中失败:没有名为“skbuild”的模块?
自从OpenCV-python4.3.0.*版本以来,manylinux1车轮被manylinux2014车轮所取代。如果您的pip太旧,它将尝试使用4.3.0.38中引入的新源代码发行版手动构建OpenCV,因为它不知道如何安装manylinux2014轮毂。但是,由于pip太老,源代码构建也将失败,因为它不理解pyproject.toml中的构建依赖关系。要使用新的manylinux2014预置车轮(或从源代码构建),您的pip版本必须是>= 19.3。
请用
pip install --upgrade pip
发布于 2020-08-16 17:41:09
我也面临着类似的情况:
Dockerfile:
FROM nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04
RUN apt-get update -y
RUN apt-get install -y vim curl iputils-ping python3-dev python3-pip libsm6
libxext6 libxrender-dev python3.6
RUN pip3 install -r /requirements.txt
...
requirements.txt:
...
opencv-python
...
在运行
docker-compose up &
时,我收到了以下错误:
Traceback (most recent call last):
![]() |
另类的饭盒 · [WPF]带下拉列表的文本框 - 东邪独孤 - 博客园 8 月前 |