pip3 install opencv-python fails on 'skbuild' - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: pip3 install opencv-python fails on 'skbuild' (/thread-29657.html) |
pip3 install opencv-python fails on 'skbuild' - Pedroski55 - Sep-15-2020 With some help from askubuntu I got it working: I used: Quote:sudo apt-get install python3-opencv I must have installed the module for Python 2!! I would like to dabble with qr codes. From here I see I need opencv-python, qrcode and numpy The FAQ on the link above says: Quote:Q: Pip install fails with ModuleNotFoundError: No module named 'skbuild'? But, when I try: Quote:pedro@pedro-512ssd:~$ pip3 install --upgrade pip3 this fails. I have: Quote:pedro@pedro-512ssd:~$ pip3 --version The above FAQ states: "your pip version must be >= 19.3" I think I should be using pip3, not pip but upgrading pip also fails: Quote:pedro@pedro-512ssd:~$ pip install --upgrade pip How can I get cv2 working?? RE: pip3 install opencv-python fails on 'skbuild' - Clunk_Head - Sep-15-2020 try: pip3 install opencv-python RE: pip3 install opencv-python fails on 'skbuild' - snippsat - Sep-15-2020 (Sep-15-2020, 12:08 AM)Pedroski55 Wrote: pedro@pedro-512ssd:~$ pip3 install --upgrade pip3It is like this no pip3 last when upgrade,test with pip3 -V after.pip3 install --upgrade pip # Or if need sudo sudo pip3 install --upgrade pip # Then install pip3 install opencv-python # Or no sudo pip3 install --user opencv-pythonTo get upgrade of all look at pyenv Simple Python Version Management A 2-minutte demo to install Python 3.8.5 and opencv-python. # install 3.8.5 mint@mint ~ $ pyenv install 3.8.5 Installing Python-3.8.5... Installed Python-3.8.5 to /home/mint/.pyenv/versions/3.8.5 # Set global(system wide) mint@mint ~ $ pyenv global 3.8.5 # Test pip tom@tom-VirtualBox:~$ pip -V pip 20.2.3 from /home/tom/.pyenv/versions/3.8.5/lib/python3.8/site-packages/pip (python 3.8) # Install opencv-python tom@tom-VirtualBox:~$ pip install opencv-python Collecting opencv-python ... Successfully installed opencv-python-4.4.0.42 # Test that it work tom@tom-VirtualBox:~$ python Python 3.8.5 (default, Sep 15 2020, 12:43:19) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> >>> cv2.__version__ '4.4.0' >>> exit() |