How can I upgrade NumPy?

后端 未结 12 2055
太阳男子
太阳男子 2020-12-01 04:31

When I installed OpenCV using Homebrew (brew), I got this problem whenever I run this command to test python -c \"import cv2\":

Run         


        
12条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 04:54

    Update numpy

    For python 2

    pip install numpy --upgrade
    

    You would also needed to upgrade your tables as well for updated version of numpy. so,

    pip install tables --upgrade
    

    For python 3

    pip3 install numpy --upgrade
    

    Similarly, the tables for python3 :-

    pip3 install tables --upgrade
    

    note:

    You need to check which python version are you using. pip for python 2.7+ or pip3 for python 3+

提交回复
热议问题