安裝環境依賴
# wget解壓
進入python目錄[root@localhost~]
# tar -zxvf python-3.8.0.tgz
cd /root/python-3.8.0
安裝 #安裝路徑可自定義#
編譯[root@localhost python-3.8.0]
# ./configure --prefix=/sot/moudle/python3.8
錯誤[root@localhost python-3.8.0]
# make && make install
安裝 make[root@localhost python-3.8.0]
# make && make install
bash: make: command not found.
..
再執行[root@localhost python-3.8.0]
# yum -y install make
make && make install
安裝編譯成功
successfully installed pip-19.2.3 setuptools-41.2.0
環境變數配置
在第76行下面加入以下內容:[root@localhost ~]
# vim /etc/profile
使配置的環境變數生效export python_home=/sot/moudle/python3.8
export path=$
/bin:$path
輸出檢視指定安裝路徑[root@localhost ~]
# source /etc/profile
驗證安裝成功[root@localhost ~]
# echo $python_home
/sot/moudle/python3.8
[root@localhost ~]
# python3
python 3.8.0 (default, jan 3 2021, 05:28:48)
[gcc 8.3.1 20191121 (red hat 8.3.1-5)] on linux
type
"help",,
"credits" or "license"
for more information.
>>>
centos下配置網路
centos預設不會建立本地連線,至少在虛擬機器裡是這樣,自己新建乙個就行了 1.cd etc sysconfig network scripts 2.vi ifcfg eth0 device eth0 bootproto dhcp onboot yes nm controlled yes儲存退出。...
CentOS7下python開發環境配置
centos 7.4自帶python2.7.5,可以通過如下命令檢視版本資訊 查詢python安裝位置 root localhost which python root localhost cd usr bin python 檢視版本資訊 root localhostbin python versi...
CentOS下yum本地配置
centos預設的 yumyum環境 步驟 1 配置 yum檔案 系統讀取yum 配置時,是讀取以 repo 為結尾的配置檔案。即centos base.repo 現在我們把原來的centos base.repo後加個字尾,不讓系統讀取此配置。再新建配置 etc yum.repos.d centos...