pip安装opencv时卡住:Running setup.py bdist_wheel for opencv-python ... /

pip安装opencv时卡住:Running setup.py bdist_wheel for opencv-python … /

使用pip安装opencv,有时会一直卡在:

pip install opencv-python                                         
Collecting opencv-python
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/38/a9/cd39fd25df434b5d9451dc266c12b72f68282a2b9bd5d7b4aa2d57d6c20e/opencv-python-4.4.0.44.tar.gz
Requirement already satisfied: numpy>=1.13.3 in /home/fd/anaconda3/lib/python3.6/site-packages (from opencv-python)
Building wheels for collected packages: opencv-python
  Running setup.py bdist_wheel for opencv-python ...

解决方法:更新pip就可以了

pip install --upgrade pip

然后再安装opencv就可以了

pip install opencv-python                                           
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting opencv-python
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a2/72/134fdc8d766a6004ee96ce84446f38457a6345fc0ce85721326cbf2adc87/opencv_python-4.4.0.44-cp36-cp36m-manylinux2014_x86_64.whl (49.5 MB)
     |████████████████████████████████| 49.5 MB 4.7 MB/s
Requirement already satisfied: numpy>=1.13.3 in /home/fd/anaconda3/lib/python3.6/site-packages (from opencv-python) (1.19.2)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.4.0.44

©️2020 CSDN 皮肤主题: 书香水墨 设计师:CSDN官方博客 返回首页