1. OpenSSL 1.1.1 설치
현재 사용되고 있는 버전은 1.0.2k-fips 이다
openssl version
python 3.10 이상은 OpenSSL 1.1.1t 버전이 필요하므로
추가로 설치 하자
yum install epel-release
yum install openssl11 openssl11-devel
설치 시 패키지 에러가 발생한다면 링크를 통해 해결 후 돌아오자
(CentOS 7 Install Error: Package)
설치 완료 후 확인해보자
openssl11 version
버전이 확인 됐다면 환경변수를 추가
export CFLAGS=$(pkg-config --cflags openssl11)
export LDFLAGS=$(pkg-config --libs openssl11)
2. Python 설치
파이썬 압축파일을 받아 풀어보자
이후 폴더로 이동해서 빌드하여 파이썬을 설치하자
wget https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tgz
tar -xvf Python-3.11.5.tgz
cd Python-3.11.5/
// 한줄씩 실행
./configure
make
make install
확인해보자
python3 --version
pip3 --version
// 실행
python3

https://heidong.tistory.com/270
https://velog.io/@och5351/CentOS-7-Python-3.10-%EC%9D%B4%EC%83%81-%EC%84%A4%EC%B9%98
728x90
'Python' 카테고리의 다른 글
| 인공지능 로드맵 (0) | 2024.06.28 |
|---|---|
| bs4 응용 (0) | 2024.01.31 |
| playwright(동적 스크래핑) (0) | 2024.01.28 |
| bs4(BeautifulSoup) (0) | 2024.01.27 |