파이썬버젼
-
Ubuntu에서 Python 버전을 변경Programing/Ent.. 2022. 7. 25. 16:08
OPCUA 튜토리얼을 따라하던 도중 python Error를 만나게 되었다. 'fullmatch' 관련 Error 였는데...구글링 결과 python 3.2 이상 버젼에서만 지원하는 함수..!! Ubuntu 기본 설치시 python 2.7이 설치되어 있었다. usr/bin 폴더를 확인해보니 3.6 버젼도 install 되어있었다. 기본 python이 2.7이 아니라 3.6 버젼을 바라보도록 symbolic link 를 수정하여야 했다. $ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1 $ sudo update-alternatives --install /usr/bin/python python /usr/bin/py..