본문 바로가기

공부/콤퓨타

ModuleNotFoundError: No module named 'requests'

반응형

 

 

맥 OS 업데이트 이후 오랜만에 돌려 본 파이썬에 에러가 떴다

 

ModuleNotFoundError: No module named 'requests'



 

requests 를 인스톨하니 또 에러가 확인된다

 

~CERT_Block % python3 -m pip install requests
error: externally-managed-environment

 

 

 

 

구글을 뒤져보다 스택오버플로우에서 답을 찾았다

이런 시련은 나에게만 나타나지 않는다 :)

 

https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3

 

How do I solve "error: externally-managed-environment" every time I use pip 3?

When I run pip install xyz on a Linux machine (using Debian or Ubuntu or a derived distro), I get this error: error: externally-managed-environment × This environment is externally managed ╰─>...

stackoverflow.com

 

python3 -m pip config set global.break-system-packages true

~CERT_Block % python3 -m pip install requests

 

 

 

 

파이썬 이슈 없이 잘 돌아간다

 

 

 

 

 

 

 

- 24.09.23 requests 재 설치 -

 

728x90
반응형

'공부 > 콤퓨타' 카테고리의 다른 글

Black Hat 2024 그리고 Defcon 32  (124) 2024.08.31
Black Hat 2024 Conference 참석  (116) 2024.08.30
생성형 AI 시대의 기회와 리스크  (226) 2024.08.24
AhnLab Tech Summit 2024  (228) 2024.08.11
정보보호의 날, 최태성 쌤 명강의  (136) 2024.08.06