新聞中心
1.環(huán)境
安裝centos 7.2最小系統(tǒng)(CentOS-7-x86_64-Minimal-1511.iso)

成都創(chuàng)新互聯(lián)公司長(zhǎng)期為上千客戶提供的網(wǎng)站建設(shè)服務(wù),團(tuán)隊(duì)從業(yè)經(jīng)驗(yàn)10年,關(guān)注不同地域、不同群體,并針對(duì)不同對(duì)象提供差異化的產(chǎn)品和服務(wù);打造開(kāi)放共贏平臺(tái),與合作伙伴共同營(yíng)造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為高陵企業(yè)提供專業(yè)的網(wǎng)站設(shè)計(jì)制作、網(wǎng)站制作,高陵網(wǎng)站改版等技術(shù)服務(wù)。擁有十余年豐富建站經(jīng)驗(yàn)和眾多成功案例,為您定制開(kāi)發(fā)。
2.需求
python-3.6.4.tar.xz(官網(wǎng)下載)
GCC(yum安裝)
一堆開(kāi)發(fā)庫(kù)(yum安裝)
3.編譯
3.1安裝編譯器
yum -y install gcc3.2安裝依賴
yum -y install bzip2-devel sqlite-devel openssl-devel readline-devel xz-devel xz-devel tk-devel gdbm-devel3.3編譯源碼
tar Jxvf Python-3.6.4.tar.xz
cd Python-3.6.4
./configure
(如果需要發(fā)布版,則配置時(shí)要開(kāi)優(yōu)化,編譯較慢./configure --enable-optimizations)
make -j4
make install默認(rèn)安裝到/usr/local
注意如果不安裝3.2依賴開(kāi)發(fā)庫(kù),則編譯完成后會(huì)提示有些模塊沒(méi)有編譯
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readline zlib
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
atexit pwd time
running build_scripts
4.運(yùn)行
[root@py3 Python-3.6.4]# python3
Python 3.6.4 (default, Jan 16 2018, 10:17:58)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
網(wǎng)頁(yè)名稱:CentOS7.2源碼安裝Python3.6
路徑分享:http://fisionsoft.com.cn/article/cdchsch.html
其他資訊
- App無(wú)法連接SQL數(shù)據(jù)庫(kù)?解決方法一網(wǎng)打盡! (app sql數(shù)據(jù)庫(kù)連接)
- 一鍵清空Redis緩存數(shù)據(jù)庫(kù),讓你輕松處理數(shù)據(jù)(redis清空緩存數(shù)據(jù)庫(kù))
- 中山,緯創(chuàng)資通,有哪些分廠?都是做什么的?廣東中山服務(wù)器
- redis啟動(dòng)命令?(如何自定義開(kāi)啟redis端口號(hào))
- windows7數(shù)據(jù)庫(kù)在哪個(gè)文件夾(Windows7數(shù)據(jù)庫(kù)所在文件夾探究)


咨詢
建站咨詢
