Python Forum
python and openCV installation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python and openCV installation
#2
dejhost Wrote:I believe that a "start from scratch" is absolutely necessary!
Look at this Python 3.8 (3.6-3.7) and pip installation under Windows
On PyPi opencv-python 4.2.0.34,so from cmd it shall work like this.
# Python interpreter you point to in Editor
C:\>python -c "import sys; print(sys.executable)"
C:\python38\python.exe

# Test pip
C:\>pip -V
pip 20.1.1 from c:\python38\lib\site-packages\pip (python 3.8)

# Install
C:\>pip install opencv-python
Collecting opencv-python
  Downloading opencv_python-4.2.0.34-cp38-cp38-win_amd64.whl (33.1 MB)
     |████████████████████████████████| 33.1 MB 6.8 MB/s
Collecting numpy>=1.17.3
  Using cached numpy-1.19.0-cp38-cp38-win_amd64.whl (13.0 MB)
Installing collected packages: numpy, opencv-python
Successfully installed numpy-1.19.0 opencv-python-4.2.0.34

# Test that it works
C:\>python
>>> import cv2
>>>
>>> cv2.bilateralFilter
<built-in function bilateralFilter>
>>>
>>> help(cv2.bilateralFilter)
Help on built-in function bilateralFilter:
Reply


Messages In This Thread
python and openCV installation - by dejhost - Jul-01-2020, 03:28 PM
RE: python and openCV installation - by snippsat - Jul-01-2020, 04:05 PM
RE: python and openCV installation - by dejhost - Jul-02-2020, 09:30 AM
RE: python and openCV installation - by snippsat - Jul-02-2020, 10:05 AM
RE: python and openCV installation - by dejhost - Jul-02-2020, 11:08 AM
RE: python and openCV installation - by snippsat - Jul-02-2020, 02:06 PM
RE: python and openCV installation - by dejhost - Jul-02-2020, 02:23 PM
RE: python and openCV installation - by snippsat - Jul-02-2020, 03:17 PM
RE: python and openCV installation - by dejhost - Jul-03-2020, 08:10 AM
RE: python and openCV installation - by snippsat - Jul-03-2020, 08:52 AM
RE: python and openCV installation - by dejhost - Jul-03-2020, 09:19 AM
RE: python and openCV installation - by snippsat - Jul-03-2020, 09:48 AM
RE: python and openCV installation - by dejhost - Jul-03-2020, 10:31 AM
RE: python and openCV installation - by snippsat - Jul-03-2020, 10:53 AM
RE: python and openCV installation - by dejhost - Jul-03-2020, 12:08 PM
RE: python and openCV installation - by snippsat - Aug-04-2020, 02:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 0 94 Yesterday, 01:00 AM
Last Post: Drone4four
  Problem with using opencv in python Raunak1023984765 21 2,217 Feb-21-2024, 04:25 PM
Last Post: Pedroski55
  Python installation for old MacOS Yonix 1 573 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 965 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 1,793 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 1,026 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  python installation/running inside singularity container erdemath 2 1,932 Sep-21-2022, 08:13 AM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,169 Aug-11-2022, 02:30 AM
Last Post: Danno
  Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. Ezzat 2 2,396 Dec-23-2021, 12:34 PM
Last Post: snippsat
  Python OpenCV window not opening in fullscreen mode Zman350x 0 3,391 Apr-29-2021, 07:54 PM
Last Post: Zman350x

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020