栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

搭建 Python OpenCV 开发环境(Win7) 记录

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

搭建 Python OpenCV 开发环境(Win7) 记录

    安装Win7虚拟机,并用安全软件打好所有补丁 要不然下面安装的时候不一定哪步就崩。安装Visual Studio 2015,主要是需要Vs中的两个工具进行编译。(注意:在安装时需要自定义安装并勾选开发语言中 Visual C++ 和针对Visual Studio 的Python 工具)安装Python 3.8 ,Win7 无法安装太高的版本。安装VS Code,并在VSCode 中安装Python扩展 用于Python开发。更新pip
    python -m pip install --upgrade pip
    开始安装依赖(并不是需要以下所有包,我只是记录一下我自己用到的)
    # C编译器
    pip install CMake -i https://pypi.tuna.tsinghua.edu.cn/simple、
    # 科学计算的基础软件包
    pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
    # wheel包工具
    pip install wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 机器学习的开源库
    pip install dlib -i https://pypi.tuna.tsinghua.edu.cn/simple
    # OPenCV基础上的一个封装
    pip install imutils -i https://pypi.tuna.tsinghua.edu.cn/simple
    # opencv
    pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
    # opencv contrib
    pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 人脸识别
    pip install face_recognition -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 开源的 Python 算法库和数学工具包
    pip install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 数据库的orm库
    pip install sqlalchemy -i https://pypi.tuna.tsinghua.edu.cn/simple
    # websoockets库
    pip install websockets -i https://pypi.tuna.tsinghua.edu.cn/simple
    # websoockets server库
    pip install websocket_server -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 国密工具箱
    pip install gmssl -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 托盘工具
    pip install pystray -i https://pypi.tuna.tsinghua.edu.cn/simple
    # 打包工具
    pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple
    
    

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/741596.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号