FacialExpressionDetection的conda虚拟环境搭建Window

安装conda的URL:Index of /anaconda/archive/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

清华源下载conda版本,哪个最新用哪个,这里下载Anaconda3-5.3.1-Windows-x86_64.exe版本

安装conda虚拟环境

conda create --name py10 python=3.10

pip 换源:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

CMD命令行进入FacialExpressionDetection目录

pip install -r requirements.txt

pytorch报错

ERROR: No matching distribution found for torch==1.9.0

换个版本

pip install torch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0

安装cv2库

pip install opencv-python

安装ultralytics

pip install ultralytics

安装PyQt5

pip install PyQt5

换numpy版本

pip install numpy==1.26.4

你可能感兴趣的:(conda)