새소식

System Management

CentOS7 리눅스 Python 3.9 설치

  • -

1.Python 설치

wget --no-check-certificate https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz
mkdir /BiO/program/python
tar xvzf Python-3.9.0.tgz -C /BiO/program/python
sudo ./configure --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions
sudo make
sudo make altinstall


2.시스템 환경 변수 설정

update-alternatives --install /bin/python python /BiO/program/python/current/python 1
update-alternatives --config python
vi /usr/bin/yum
#!/usr/bin/python --> #!/usr/bin/python2


3.pip 명령어 설치

wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
python get-pip.py
python -m pip install --upgrade pip
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.