728x90
반응형
SMALL
1.yum을 이용해 GCC 컴파일러, openssl-devel, bzip2-devel, libffi-devel를 설치합니다.
yum install gcc openssl-devel bzip2-devel libffi-devel
2.wget
yum install wget
3.python.tar 다운
$ wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
$ cd Python-3.9.6
4.빌드 최적화 설정
./configure --enable-optimizations
5.make altinstall
make altinstall
6.경로확인
which python3.9
7..bashrc 설정
vi /root/.bashrc
# .bashrc
# User specific aliases and functions
alias python="/usr/local/bin/python3.9"
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias python="/usr/local/bin/python3.9"
파이썬 경로 추가
8.설정적용
source /root/.bashrc
728x90
반응형
LIST