- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我要安装picamera
在 Ubuntu 20.04 上。
在 sudo pip install picamera
之后出现以下错误.
如何安装 picamera
?.
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_s89vs5d/picamera/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_s89vs5d/picamera/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 /tmp/pip-wheel-1cbs8kpu
cwd: /tmp/pip-install-_s89vs5d/picamera/
Complete output (54 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/picamera
copying picamera/mmal.py -> build/lib/picamera
copying picamera/camera.py -> build/lib/picamera
copying picamera/encoders.py -> build/lib/picamera
copying picamera/exc.py -> build/lib/picamera
copying picamera/streams.py -> build/lib/picamera
copying picamera/color.py -> build/lib/picamera
copying picamera/__init__.py -> build/lib/picamera
copying picamera/array.py -> build/lib/picamera
copying picamera/display.py -> build/lib/picamera
copying picamera/bcm_host.py -> build/lib/picamera
copying picamera/mmalobj.py -> build/lib/picamera
copying picamera/renderers.py -> build/lib/picamera
copying picamera/frames.py -> build/lib/picamera
running egg_info
writing picamera.egg-info/PKG-INFO
writing dependency_links to picamera.egg-info/dependency_links.txt
writing requirements to picamera.egg-info/requires.txt
writing top-level names to picamera.egg-info/top_level.txt
reading manifest file 'picamera.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'debian'
no previously-included directories found matching 'docs'
writing manifest file 'picamera.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_s89vs5d/picamera/setup.py", line 145, in <module>
main()
File "/tmp/pip-install-_s89vs5d/picamera/setup.py", line 119, in main
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 259, in run
self.run_command('install')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-_s89vs5d/picamera/setup.py", line 111, in run
raise ValueError('Unable to determine if this system is a Raspberry Pi')
ValueError: Unable to determine if this system is a Raspberry Pi
----------------------------------------
ERROR: Failed building wheel for picamera
Running setup.py clean for picamera
Failed to build picamera
Installing collected packages: picamera
Running setup.py install for picamera ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_s89vs5d/picamera/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_s89vs5d/picamera/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-sja1u8l0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/picamera
cwd: /tmp/pip-install-_s89vs5d/picamera/
Complete output (18 lines):
running install
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-_s89vs5d/picamera/setup.py", line 145, in <module>
main()
File "/tmp/pip-install-_s89vs5d/picamera/setup.py", line 119, in main
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-_s89vs5d/picamera/setup.py", line 111, in run
raise ValueError('Unable to determine if this system is a Raspberry Pi')
ValueError: Unable to determine if this system is a Raspberry Pi
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_s89vs5d/picamera/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_s89vs5d/picamera/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-sja1u8l0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/picamera Check the logs for full command output.
最佳答案
您可以直接从 GitHub repository 安装
$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
$ sudo pip3 install git+https://github.com/waveform80/picamera
Collecting git+https://github.com/waveform80/picamera
Cloning https://github.com/waveform80/picamera to /tmp/pip-req-build-g87qbbfe
Building wheels for collected packages: picamera
Building wheel for picamera (setup.py) ... done
Created wheel for picamera: filename=picamera-1.13-py3-none-any.whl size=149553 sha256=869dfec10553ed3d55921a8e6ad118f74c63e3fb7efa6dec86366552d9802ef0
Stored in directory: /tmp/pip-ephem-wheel-cache-wkr6b3lc/wheels/f5/63/a9/e2e3f131874542cea00b390274e75fb6845420358a8752d61a
Successfully built picamera
Installing collected packages: picamera
Successfully installed picamera-1.13
关于ubuntu - 在 Ubuntu 上安装 python3-picamera,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64817699/
我正在使用 python 的 picamera 模块捕捉延时摄影: from picamera import PiCamera, Color class EggAlertCam: def __
以下示例代码将图像保存到流中。我想知道如何将此流中的图像保存到我的 Pi SD 卡上的图像文件(.jpg 等)中,最好是在捕获所有图像后以保持高 FPS。 import io import time
我正在使用带有摄像头模块(Raspberry pi Camera)的 Raspberry pi 无人机安装在无人机上,并编程为在固定间隔后拍照。然而,图像似乎有点不一致,如下所示 . 与其他图片相比,
我有一个带有摄像头模块的 Raspberry Pi,我想将 PiCamera 的视频返回从 Python 流式传输到另一台运行 Python 服务器的计算机。 我成功地使用 OpenCV 返回了视频(
我关注了这个网站( https://www.pyimagesearch.com/2015/03/30/accessing-the-raspberry-pi-camera-with-opencv-and
我正在 Flask 中创建一个小网络界面,以使用 PiCamera python 模块控制 Raspberry Pi 相机。我有一个工作索引页面,它显示来自相机的流。但是,当我通过输入按钮 POST
我想启动相机预览,使用 PiCamera 模块一段时间后拍摄一张照片,当拍摄照片时,它应该卡住预览以便用户可以查看它,我如何卡住预览? 目前我使用 matplotlib.image 显示它: from
我最近开始使用 Raspberry PiCamera 模块,并且遇到了图像预览问题。使用 start_preview() 可以很好地处理 Raspberry 的物理视频输出。现在我想通过 TightV
我上周刚拿到我的第一个 Raspberry Pi 产品。我有一个 Raspberry Pi Zero W 和一个 PiCamera。我创建了一个程序(由 crontab 每天运行),它将拍摄照片,将照
尝试使用 picamera 在树莓派 3 上进行线程图像采集。编写这段代码的原始程序员消失了,所以我不得不重新学习 python,我有点迷路了。现在我只是想做一些非常基本的事情,并希望从中扩展。 我这
我正在使用 Raspberry 来简单地显示一个视频(目前只是这个)。为此,我必须使用 opencv (cv2)。我尝试了很多解决方案,但现在我想使用 Picamera 库捕获视频。我会告诉你我的代码
您好,我正在尝试使用 PiCamera 模块录制期间捕获低分辨率图像。然而它在camera.capture线上崩溃并给出以下错误 File "/usr/lib/python3/dist-package
我要安装picamera在 Ubuntu 20.04 上。 在 sudo pip install picamera 之后出现以下错误. 如何安装 picamera ?. ERROR: Command
我正在尝试使用 python 覆盆子相机模块录制视频,并且 然后将每一帧转换为一个openCV帧,但没有成功: import time import picamera import cv2 impor
我正在编写一个 python 脚本,它将有一个 ASCII 菜单来设置延时摄影。如果服务器不可用,将图像发送到我的网络服务器或 USB。 我正在做线程脚本。所以我不确定它是线程问题还是什么,但我收到错
我看到大量关于将 raspivid 流直接传输到 FFMPEG 以进行编码、混合和重新流式传输的信息,但这些用例主要来自 bash;类似于: raspivid -n -w 480 -h 320 -b
我正在使用带有 picamera 和 opencv python 模块的树莓派尝试进行一些快速捕获和处理。目前我正在使用 http://picamera.readthedocs.org/en/late
我对 Python 相当陌生,正在尝试编写一种 PiCamera 来拾取不同颜色并据此使用react的方法。我目前对每种颜色的尝试是拍照并检测所涉及的颜色。下面是一些示例代码。 def red_det
我正在尝试获取我的 PiCamera 模块 v2.1 在我的 RaspberryPi4 上运行。不幸的是,我必须安装 Ubuntu 19.10 64 位 分配。到目前为止,一切都很好。 我已经安装了
我正在与一些 friend 一起开发一个项目,我们在实现 picamera 时遇到了一些问题。 我们尝试在程序开始时导入 cv2 和 picamera(使用 Python 3),到目前为止导入 cv2
我是一名优秀的程序员,十分优秀!