[GitHub][2014-05-10 21:23:30]Adafruit-Raspberry-Pi-Python-Code

Adafruit Raspberry Pi Python 代码库
GitHub: https://github.com/sintrb/Adafruit-Raspberry-Pi-Python-Code

Adafruit's Raspberry-Pi Python Code Library

Here is a growing collection of libraries and example python scripts for controlling a variety of Adafruit electronics with a Raspberry Pi

In progress!

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried, Kevin Townsend and Mikey Sklar for Adafruit Industries. BSD license, all text above and below must be included in any redistribution

To download, we suggest logging into your Pi with Internet accessibility and typing: git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git

Copyright (c) 2012-2013 Limor Fried, Kevin Townsend and Mikey Sklar for Adafruit Industries. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

root@ubuntu:~# sudo apt-get update sudo apt-get install python3-pip pip3 install Adafruit_DHT Hit:1 http://archive.d-robotics.cc/ubuntu-rdk jammy InRelease Hit:2 http://mirrors4.tuna.tsinghua.edu.cn/ubuntu-ports jammy InRelease Get:3 http://mirrors4.tuna.tsinghua.edu.cn/ubuntu-ports jammy-security InRelease [129 kB] Get:4 http://mirrors4.tuna.tsinghua.edu.cn/ubuntu-ports jammy-updates InRelease [128 kB] Get:5 http://mirrors4.tuna.tsinghua.edu.cn/ubuntu-ports jammy-backports InRelease [127 kB] Get:6 http://mirrors4.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease [4,682 B] Err:6 http://mirrors4.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org> Reading package lists... Done W: GPG error: http://mirrors4.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease: The following signatures were invalid: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfoundation.org> E: The repository 'http://mirrors4.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree... Done Reading state information... Done python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.6). 0 upgraded, 0 newly installed, 0 to remove and 248 not upgraded. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting Adafruit_DHT Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ff/24/b999708edffbc3d30763acdf07dc7a1666a1542795f3d2b80d6ef2590c0c/Adafruit_DHT-1.4.0.tar.gz (15 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: Adafruit_DHT Building wheel for Adafruit_DHT (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [1 lines of output] Could not detect if running on the Raspberry Pi or Beaglebone Black. If this failure is unexpected, you can run again with --force-pi or --force-bbb parameter to force using the Raspberry Pi or Beaglebone Black respectively. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Adafruit_DHT Running setup.py clean for Adafruit_DHT Failed to build Adafruit_DHT Installing collected packages: Adafruit_DHT Running setup.py install for Adafruit_DHT ... error error: subprocess-exited-with-error × Running setup.py install for Adafruit_DHT did not run successfully. │ exit code: 1 ╰─> [1 lines of output] Could not detect if running on the Raspberry Pi or Beaglebone Black. If this failure is unexpected, you can run again with --force-pi or --force-bbb parameter to force using the Raspberry Pi or Beaglebone Black respectively. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> Adafruit_DHT note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
07-07
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值