1

while trying to install the wheel file I'm getting the not a supported wheel on this platform and also updated pip

opencv_python-3.4.2+contrib-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform

vishnu
  • 13
  • 2
  • 7

2 Answers2

2

try this

pip install opencv-contrib-python 

This will install it via pip. And it is way easier to do. I am running python 3.5 for this inside anaconda. Install with no issues. Please note you can only have one version installed at a time on each environment.

MNM
  • 2,673
  • 6
  • 38
  • 73
0

I think this is not just an opencv + poetry issue. It's effected me with several other packages too.

The underlying cause is the pip version according to python-poetry issue 5104. So pip install -U pip should fix it. You could also upgrade Poetry (poetry self update) I went from ^1.3 to ^1.4 without the pip upgrade and I got a warning, not an error, but with the pip upgrade there was no errors or warnings.

@MNM's suggestion will work, but if you're using Poetry I presume proper dependency resolution is important to you. If you just run pip install x you bypass Poetry's dependancy resolution and pip will simply install package x and all its dependencies over the top what what Poetry has already installed.


Real talk time: I know poetry's dependency resolution can be a little time consuming. I have been known to pip install x just to keep moving, then at lunch I'll run the poetry add x so poetry can sort its life out while I'm enjoying a hard earned coffee beer.

Joshua Patterson
  • 439
  • 5
  • 12