# myChat **Repository Path**: juzaizai/myChat ## Basic Information - **Project Name**: myChat - **Description**: MYSQL+TCP+音视频传输案例开发。模拟QQ软件,基于多线程编程技术捕捉笔记本摄像头或麦克风实时数据,基于socket通信设计发送端、接收端两个部分。 - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: https://www.cnblogs.com/juzaizai/ - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 0 - **Created**: 2022-03-07 - **Last Updated**: 2025-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MYSQL+TCP+音视频传输案例开发 ## 介绍 局域网下的摄像头监控系统 ## 环境安装 ### 安装anaconda或者miniconda Anaconda 是一个用于科学计算的 Python 发行版,支持 Linux, Mac, Windows, 包含了众多流行的科学计算、数据分析的 Python 包。 Anaconda 安装包可以到 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 下载。 Miniconda 是一个 Anaconda 的轻量级替代,默认只包含了 python 和 conda,但是可以通过 pip 和 conda 来安装所需要的包。 Miniconda 安装包可以到 https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/ 下载。 也可以去官网下载: anaconda: [https://www.anaconda.com/download/](https://www.anaconda.com/download/) miniconda: [https://docs.conda.io/en/latest/miniconda.html](https://docs.conda.io/en/latest/miniconda.html) 两者区别见[https://blog.csdn.net/qq_18668137/article/details/80807829](https://blog.csdn.net/qq_18668137/article/details/80807829) ### conda配置清华源 > 有两种配置源的方法,选择一种即可。 - 通过命令行设置: ```bash conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda conda config --set show_channel_urls yes ``` - 通过配置文件设置: 编辑主目录下的`.condarc`文件: ```bash channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud ``` 运行 `conda clean -i` 清除索引缓存,保证用的是镜像站提供的索引。 ### 创建myChat开发环境 ```bash conda create --name myChat python=3.10 conda activate myChat ``` ### 更换pip源 ```bash python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple ``` ### 配置myChat开发环境 ```bash conda install pyaudio conda install ffmpeg conda install pyqt pip install ffmpy pip install opencv-python pip install loguru ```