본문 바로가기
Issue/Python

[Python] pytrec-eval 설치 에러: Microsoft Visual C++ 14.0 or greater is required.

by hyeonjins 2024. 10. 21.

github 코드를 돌리기 위해 pytrec_eval을 설치해야하는데 에러가 계속 발생했다.

pip install pytrec-eval

 

 

발생되는 문제

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

 

Microsoft C++ Build Tools - Visual Studio

The Microsoft C++ Build Tools provides MSVC toolsets via a scriptable, standalone installer without Visual Studio. Recommended if you build C++ libraries and applications targeting Windows from the command-line (e.g. as part of your continuous integration

visualstudio.microsoft.com

 

위와 같은 에러가 발생했다. 하지만 C++ 버전이  이미 14.0 이상이다. 

 

 

해결책

pip install pytrec-eval-terrier​

 

 

 

참고자료

 

pytrec library not able to install on my system raising error

I am trying to install the pytrec_eval library in python and is throwing me the following error ` pip install pytrec_eval Collecting pytrec_eval Using cached pytrec_eval-0.5.tar.gz (15 kB) Pre...

stackoverflow.com