How can I upgrade NumPy?

后端 未结 12 2079
太阳男子
太阳男子 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:48

    Because you have multiple versions of NumPy installed.

    Try pip uninstall numpy and pip list | grep numpy several times, until you see no output from pip list | grep numpy.

    Then pip install numpy will get you the newest version of NumPy.

提交回复
热议问题