I am building a Python web scraping script and i have to use cv2 (OpenCV). So I install using pip install opencv-python
as the website directs. And it also installs numpy as a dependency.
However, right after installing that, I'm unable to run my python script. It crashes with the error below:
I think the issue is from Numpy but I don't know how to fix this. Please help.
This is my environment:
I had the same issue when I tried to run a project I made on Windows on Mac OS. The solution I found was to install an older version of numpy (e.g. numpy 1.18).
Here is the command I ran to do so :
sudo python -m pip install numpy==1.18 --force
I don't think it is a good solution but it is ok for a temporary fix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With