opencvをインストールできない件
ラズパイ初心者です。フォーラムも初めて利用させていただきます。(至らぬ点がありましたらご容赦頂ければ幸いです。)
Raspberry Pi OS (Legacy)を搭載したradpberry pi zero wを使用しており、opencvをインストールしたいのですが、ターミナルに
sudo python -m pip install --upgrade pip
sudo pip3 install opencv-python==4.5.1.48
と入力すると
(ERROR: Could not find a version that satisfies the requirement opencv-python-4.5.1.48 ERROR: No matching distribution found for opencv-python==4.5.1.58 )
とエラーが出てしまいます。公式ホームページで明記されている他バージョン(4.5.4や4.5.5)でも試しましたが同じエラー文でした。
他サイトの見よう見まねで、sudo apt install python3-opencv
も試してみましたが、アクセスエラー(Failed to fetch http://raspbian.raspberrypi.org/raspbia ... /gdal/gdal -data 3.2.2%2bdfsg-2%2bdeb11u2_all.deb Temporary failure resolving ‘raspbian.ras pberrypi.org)が出てしまいます。
初歩的な質問で恐縮ですが、どなたかお知恵を拝借いただけますと幸いです。よろしくお願いいたします。
Raspberry Pi OS (Legacy)を搭載したradpberry pi zero wを使用しており、opencvをインストールしたいのですが、ターミナルに
sudo python -m pip install --upgrade pip
sudo pip3 install opencv-python==4.5.1.48
と入力すると
(ERROR: Could not find a version that satisfies the requirement opencv-python-4.5.1.48 ERROR: No matching distribution found for opencv-python==4.5.1.58 )
とエラーが出てしまいます。公式ホームページで明記されている他バージョン(4.5.4や4.5.5)でも試しましたが同じエラー文でした。
他サイトの見よう見まねで、sudo apt install python3-opencv
も試してみましたが、アクセスエラー(Failed to fetch http://raspbian.raspberrypi.org/raspbia ... /gdal/gdal -data 3.2.2%2bdfsg-2%2bdeb11u2_all.deb Temporary failure resolving ‘raspbian.ras pberrypi.org)が出てしまいます。
初歩的な質問で恐縮ですが、どなたかお知恵を拝借いただけますと幸いです。よろしくお願いいたします。
Re: opencvをインストールできない件
参考になりそうなURLです。
https://www.youtube.com/watch?v=AAqiZYBHAsw
Compiled OpenCV 4.0.0 for C++ on my Raspberry Pi Zero 2 W with 512MB SDRAM, 128GB micro-SD card, and 2GB swapfile running 32-bit Raspbian 10 (buster) OS on 32-bit Linux kernel 5.10.63-v7l+ for armv7l.
重要 [...もっと見る]をクリックすること ! ! ! !
######################################################################
opencv 4.5.1
######################################################################
以降の手順を参考にしてください。
初期導入からソースコンパイルまでなので半日かかると思いますが
手順は明記されているのでステップごとに確認してください。
Youtube動画で追いかけるのは大変そうですが頑張ってください。
https://www.youtube.com/watch?v=AAqiZYBHAsw
Compiled OpenCV 4.0.0 for C++ on my Raspberry Pi Zero 2 W with 512MB SDRAM, 128GB micro-SD card, and 2GB swapfile running 32-bit Raspbian 10 (buster) OS on 32-bit Linux kernel 5.10.63-v7l+ for armv7l.
重要 [...もっと見る]をクリックすること ! ! ! !
######################################################################
opencv 4.5.1
######################################################################
以降の手順を参考にしてください。
初期導入からソースコンパイルまでなので半日かかると思いますが
手順は明記されているのでステップごとに確認してください。
Youtube動画で追いかけるのは大変そうですが頑張ってください。
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Gaming
- Media centres
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion