1.确定设备版本
(1)打开anconda promot 输入
pip debug --verbose
找到:
Compatible tags: 30
cp38-cp38-win_amd64
cp38-abi3-win_amd64
cp38-none-win_amd64
cp37-abi3-win_amd64
cp36-abi3-win_amd64
cp35-abi3-win_amd64
cp34-abi3-win_amd64
cp33-abi3-win_amd64
cp32-abi3-win_amd64
py38-none-win_amd64
py3-none-win_amd64
py37-none-win_amd64
py36-none-win_amd64
py35-none-win_amd64
py34-none-win_amd64
py33-none-win_amd64
py32-none-win_amd64
py31-none-win_amd64
py30-none-win_amd64
cp38-none-any
py38-none-any
py3-none-any
py37-none-any
py36-none-any
py35-none-any
py34-none-any
py33-none-any
py32-none-any
py31-none-any
py30-none-any
(2)下载指定的opencv.whl文件: (3)安装到anaconda的site-packages目录下
G:\professional_software\10.Anaconda\Lib\site-packages
(4)cmd命令,安装文件
C:\Users\lifuqian>cd /d G:\professional_software\10.Anaconda\Lib\site-packages
G:\professional_software\10.Anaconda\Lib\site-packages>pip install opencv_python-4.5.5-cp38-cp38-win_amd64.whl
Processing g:\professional_software\10.anaconda\lib\site-packages\opencv_python-4.5.5-cp38-cp38-win_amd64.whl
Installing collected packages: opencv-python
Attempting uninstall: opencv-python
Found existing installation: opencv-python 4.4.0
Uninstalling opencv-python-4.4.0:
Successfully uninstalled opencv-python-4.4.0
Successfully installed opencv-python-4.5.5
|