我正在尝试在我的 Rasberry Pi 上安装 OpenCV,但是当我运行以下命令时,出现了一些错误。命令:
pip install opencv-contrib-python
结果:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting opencv-contrib-python
Using cached opencv-contrib-python-4.5.1.48.tar.gz (148.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.14.5 in ./.local/lib/python3.7/site-packages (from opencv-contrib-python) (1.19.5)
Building wheels for collected packages: opencv-contrib-python
Building wheel for opencv-contrib-python (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 /usr/local/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp5g982u_t
cwd: /tmp/pip-install-v1dx6hv5/opencv-contrib-python_85b21e0e2a604411afeb4dda9ea29270
Complete output (12 lines): …Run Code Online (Sandbox Code Playgroud) 我有 Windows 10 和新的 Python 3.6.1。我试图安装包 Cmake 0.6.0(需要另一个包,atari-py)使用
pip install cmake
Run Code Online (Sandbox Code Playgroud)
但我遇到了一个错误。
我安装了以下软件包:pip、scikit-build、setuptools、wheel、pybdist。我的帐户名中确实有一个外来符号(经验教训),但是在安装其他软件包时它可以正常工作。我不是一个熟练的 Windows 管理员。
Collecting cmake
Using cached cmake-0.6.0.tar.gz
Building wheels for collected packages: cmake
Running setup.py bdist_wheel for cmake: started
Running setup.py bdist_wheel for cmake: finished with status 'error'
Complete output from command C:\Python\Python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\?ejkis\\AppData\\Local\\Temp\\pycharm-packaging1\\cmake\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\EJKIS~1\AppData\Local\Temp\tmp3br7eri7pip-wheel- --python-tag cp36:
Traceback (most recent call last):
File "C:\Python\Python36-32\lib\site-packages\skbuild\setuptools_wrap.py", line 405, in setup
cmkr = cmaker.CMaker()
File "C:\Python\Python36-32\lib\site-packages\skbuild\cmaker.py", line 67, in …Run Code Online (Sandbox Code Playgroud)