pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple onnx
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple onnxruntime
pip install -r requirements.txt
numpy==1.23.5
opencv-python==4.7.0.72
onnx==1.14.0
insightface==0.7.3
psutil==5.9.5
tk==0.1.0
pillow==9.5.0
torch==2.0.1
onnxruntime==1.14.0
tensorflow==2.12.0
opennsfw2==0.10.2
protobuf==4.23.2
tqdm==4.65.0
pip install -r requirements.txt -q pip install PyQt5==5.12.1 PyQt5-sip==4.19.19 PyQtWebEngine==5.12.1 pip install helpdev==0.6.10 conda create -n pytorch python=3.8 创建环境(环境名字是PyTorch,随便叫什么名字都行) conda info --envs 显示环境 conda env list 与conda info --envs 功能一致 conda remove -n xxxxx(名字) --all 删除虚拟环境,包括虚拟环境里的包(比如torch) conda activate xxxxx(名字) 进入环境 pip list 查看环境的库 conda deactivate 退出虚拟环境 conda install -c conda-forge ffmpeg conda install libpng
conda install jpeg
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1
标签:--,pypi,虚拟环境,conda,install,pip From: https://www.cnblogs.com/tonggc1668/p/17449094.html