본문 바로가기
Study/PYTHON

우분투 Python 설치 시 에러 : ImportError: cannot import name 'sysconfig'

by 멘탈은안녕하신가 2019. 1. 3.
728x90
반응형

우분투에서 파이썬을 설치하는데 다음의 단계를 진행하는 도중 에러가 떴다.

$sudo python3.6 get-pip.py

에러 내용 : ImportError: cannot import name 'sysconfig'


리눅스는 잘 모르는터라 시키는대로 하고 있었는데 안되면 참 난감하다...

열심히 구글링 한 결과 다음의 사이트에서 답을 찾을 수 있었다.


https://qura.site/questions/4455/pip-can-not-import-name-z-yz-config


"sudo apt install python3-distutils" 를 실행하고 다시 $sudo python3.6 get-pip.py 실행.


해결!


그러면... python3-distutils가 뭔지 살펴보자.


https://docs.python.org/3/library/distutils.html


레퍼런스 사이트에 들어가면 다음과 같이 써있다.

"The distutils package provides support for building and installing additional modules into a Python installation. "


간단하게 파이썬에 추가모듈 설치를 지원하는 명령어라고 한다.


728x90
반응형

댓글