Programing/기타 오류 해결
error: legacy-install-failure
뇌님
2022. 9. 6. 15:22
반응형
Building wheels for collected packages: wxpython
Building wheel for wxpython (setup.py) ...
(생략)
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> wxpython
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
failed
CondaEnvException: Pip failed
pip에 직접적인 문제가 있는건 아닌데 결과적으로 pip 설치가 실패했다고 에러가 났습니다.
빌드과정에서 wheel에 문제가 있나봅니다.
해결방법 1
현재 제 gensim 버전이 4.2.0인데, 낮춰주면 해결할 수 있다고 합니다.
출처 : https://velog.io/@ex0831/TIL-0608-gensim-legacy-install-failure-%ED%95%B4%EA%B2%B0%EB%B0%A9%EB%B2%95
pip uninstall gensim
pip install gensim==3.8.3
하지만 제 경우엔 이 방법이 아니었나봅니다.
해결방법 2
출처 : https://askubuntu.com/questions/1413682/wxpython-not-installing
sudo apt install libgtk-3-dev
제 경우엔 이 방법이 해결책이였습니다.
반응형