Python中文
首页
教程
问答
标签
搜索
登录
注册
无法安装OpenCV python3.8
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>执行此命令时:</p> <p><code>pip3 install opencv-python</code></p> <p>我得到以下错误:</p> <pre><code> 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. </code></pre> <p>当我尝试安装ecapture时,我使用的也是最新的python版本</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>尝试使用升级您的pip</p> <pre><code>pip install --upgrade pip </code></pre> <p>然后运行</p> <pre><code>pip install opencv-python </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
拆分()错误:列表索引超出范围
10 回答
拆分(分解)数据帧字符串条目以分隔行
8 回答
拆分(分解)数据帧字符串条目以分隔行。多列
6 回答
拆分/提取系列索引中的字符串并作为DataFram展开
8 回答
拆分/标识字符串末尾的数字,该数字没有固定的字符数
2 回答
拆分2列CSV并保存到不同的文件
2 回答
拆分aconftest.py分成几个较小的conftestlike部分
7 回答
拆分apyspark.sql基于一列将数据帧放入多个表中
4 回答
拆分ascii/unicode字符串
2 回答
拆分a稀疏稀疏矩阵进入列车和tes
3 回答
拆分B的可能性
8 回答
拆分char上的查询字符串以获取不同的参数;Python:
5 回答
拆分csv fi中显示的图表
3 回答
拆分csv fi的列
10 回答
拆分CSV-fi需要Regex帮助
5 回答
拆分csv(和多选字段)以获取要导出到xlsx工作表的字段计数,我会不断获取“[blank]值和nan
6 回答
拆分CSV文件时出现标题问题[Python 3]
5 回答
拆分Cython代码后无法转换为Python对象
9 回答
拆分Dataframe,让线程处理每个部分,然后合并Datafram
10 回答
拆分dataframe列并删除额外变量
3 回答