-
https://www.python.org/downloads/ 에서 경로를 얻어온다.
원하는 버전을 클릭하면 아래쪽에 Files가 있는데 이중에서
난 XZ com...[생략]을 받았다.
압축을 풀어준뒤 해당 파일로 이동한다.
[root@node2 python3]# wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
--2019-02-19 19:51:43-- https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
Resolving www.python.org... 151.101.228.223, 2a04:4e42:15::223
Connecting to www.python.org|151.101.228.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17212420 (16M) [application/octet-stream]
Saving to: “Python-3.6.8.tar.xz”
100%[===============================================================================================================>] 17,212,420 7.95M/s in 2.1s
2019-02-19 19:51:45 (7.95 MB/s) - “Python-3.6.8.tar.xz” saved [17212420/17212420]
[root@node2 python3]# ls
Python-3.6.8.tar.xz
[root@node2 python3]# tar xf Python-3.6.8.tar.xz
[root@node2 python3]# ls
Python-3.6.8 Python-3.6.8.tar.xz해당 파일로 이동하면 configure이 있다. 실행해주자.
*
./configure --prefix=/usr/local/python2.
7
--enable-shared 로 설치해야한다고 한다.
링크 참조 : https://www.lesstif.com/pages/viewpage.action?pageId=30705072
[root@node2 Python-3.6.8]# ls
aclocal.m4 config.sub configure.ac Grammar install-sh LICENSE Makefile.pre.in Modules Parser PCbuild pyconfig.h.in README.rst Tools
config.guess configure Doc Include Lib Mac Misc Objects PC Programs Python setup.py
[root@node2 Python-3.6.8]# ./configure담에 make와 make install을 해주자!
[root@node2 Python-3.6.8]# make && make install
끝!
[root@node2 ~]# python3
Python 3.6.8 (default, Feb 19 2019, 19:55:31)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>'2019년' 카테고리의 다른 글
설치 메모 (0) 2019.02.19 curl을 이용한 pip 설치 (0) 2019.02.19 Error: Cannot retrieve repository metadata (repomd.xml) for repository: c6-media. Please verify its path and try again (0) 2019.02.19 Exception in thread "main" org.apache.spark.SparkException: Task not serializable (0) 2019.01.23 Spark submit 메모리 오류 (0) 2019.01.23