How can I upgrade NumPy?

后端 未结 12 2078
太阳男子
太阳男子 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 04:46

    If you are stuck with a machine where you don't have root access, then it is better to deal with a custom Python installation.

    The Anaconda installation worked like a charm:

    • Installing packages (SciPy.org)
    • Anaconda Python/R Distribution - download

    After installation,

    [bash]$ /xxx/devTools/python/anaconda/bin/pip list --format=columns | grep numpy

    numpy 1.13.3 numpydoc 0.7.0

提交回复
热议问题