遇到了同样的问题,直接pip install torchreid没用,从GitHub上找到了解决方法
https://github.com/phil-bergmann/tracking_wo_bnw/issues/159

pip install https://github.com/KaiyangZhou/deep-person-reid/archive/master.zip
一般pip之后会有三种情况:
安装成功,开心跑代码;
碰到墙,我把zip上传到网盘了,链接:https://pan.baidu.com/s/16cvKETuDUepI5yZtSQ-cyg?pwd=xe1h 提取码:xe1h,cd到对应目录直接pip安装:pip install deep-person-reid-master.zip
遇到ERROR: Command errored out with exit status 1的问题。

仔细看错误信息,发现缺少Microsoft Visual C++ 14.0
去官网下载
https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/

安装后就可以pip install https://github.com/KaiyangZhou/deep-person-reid/archive/master.zip 了