컴퓨터 TIP
파이썬, 패키지 설치 오류 해결방법(PIP upgrade 방법)
오래충분
2022. 6. 8. 09:39
반응형
파이썬, 패키지 설치 오류 해결방법
나의 경우는 pip install xlrd 를 설치하려는 명령어를 넣었는데, 오류가 나면서 해당 패키지 설치가 되지 않았다. 그런데 터미널에 다음과 같이 두행을 입력한 뒤에 문제가 해결이 되었다.
해결방법>
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
두개의 명령어를 입력하고, pip install xrld 를 입력했더니 정상적으로 xrld 가 설치되었다.
해결 완료, 며칠간 pip install 에러가 있어서 봤는데, 이유는 단지 최신 PIP 버젼을 설치하는 명령어를 해주면 된다는 것이다.
문제는 PIP 버젼이 낮았던 것이였다. 무언가가 꼬였었나보다.
ERROR > 커맨드 pip install xlrd 를 해도 설치가 되지 않았던 상황,
base _command.py", line 23, in from pip._internal.index import PackageFinder, 라인 몇행에 모듈이 패키지에서 불러와지지 않는다는 그런 내용인데, 다음과 같은 방법으로 해결이 되었다.
How To Solve ImportError: cannot import name ‘PackageFinder’ Error ?
How To Solve ImportError: cannot import name ‘PackageFinder’ Error ?
- How To Solve ImportError: cannot import name 'PackageFinder' Error ?To Solve ImportError: cannot import name 'PackageFinder' Error Just need to install latest pip version Just use this command curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py And Then, python get-pip.py Then just delete installation script. Here is command rm get-pip.py Second solution is just run this command python3 -m ensurepip –upgrade.
- ImportError: cannot import name 'PackageFinder'To Solve ImportError: cannot import name 'PackageFinder' Error Just need to install latest pip version Just use this command curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py And Then, python get-pip.py Then just delete installation script. Here is command rm get-pip.py Second solution is just run this command python3 -m ensurepip –upgrade.

참조한 사이트 : https://exerror.com/importerror-cannot-import-name-packagefinder/
반응형