Encountered the same problem, directly pip install torchreid is useless, found a solution from GitHub
https://github.com/phil-bergmann/tracking_wo_bnw/issues/159
pip install https://github.com/KaiyangZhou/deep-person-reid/archive/master.zip
Generally, there are three situations after pip:
The installation is successful, and the code is happy to run;
Hit the wall, I uploaded the zip to the network disk, link: https://pan.baidu.com/s/16cvKETuDUepI5yZtSQ-cyg?pwd=xe1h Extraction code: xe1h, cd to the corresponding directory and directly pip install: pip install deep -person-reid-master.zip
Encountered the problem of ERROR: Command errored out with exit status 1.
Look carefully at the error message and find that Microsoft Visual C++ 14.0 is missing
Go to the official website to download
https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
After installation, you can pip install https://github.com/KaiyangZhou/deep-person-reid/archive/master.zip