首先,我這邊的環境是雲服務器,使用的是RHEL6.5,具體配置如下:
(base) [root@DB02 soft]# uname -a
Linux DB02 2.6.32-431.el6.x86_64 #1 SMP Fri Mar 28 08:38:24 CST 2014 x86_64 x86_64 x86_64 GNU/Linux
(base) [root@DB02 soft]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
(base) [root@DB02 soft]# free -g
total used free shared buffers cached
Mem: 125 51 74 0 0 34
-/+ buffers/cache: 16 109
Swap: 7 0 7
服務器無法訪問互聯網,只能採用下載安裝包的形式手動安裝。
1:安裝Python3.7.0
系統自帶了python2,但我需要安裝Anaconda3,所以需要安裝python3.7的版本,採用的是源碼編譯安裝。GCC的版本是4.4.7:
(base) [root@DB02 soft]# gcc --version
gcc (GCC) 4.4.7 20120313 (NeoKylin 4.4.7-4)
Copyright © 2010 Free Software Foundation, Inc.
所有的安裝源都在清華鏡像下載:
python3.7.0:
下載地址:
https://www.python