在Linux上安装Python3.6.1
服務器遠程下載,使用命令:wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
完整的第二種安裝python-3.6.1的方法
[root@VM_58_11_centos ~]# wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz? 獲取安裝包
[root@VM_58_11_centos ~]# tar -zxf Python-3.6.1.tgz? 解壓縮
[root@VM_58_11_centos ~]# cd Python-3.6.1?? 定位到文件夾
#查看安裝包文件
[root@VM_58_11_centos Python-3.6.1]# ls
aclocal.m4??? config.sub? configure.ac? Grammar? install-sh? LICENSE? Makefile.pre.in? Modules? Parser? PCbuild??????? Python? setup.py
config.guess? configure?? Doc?????????? Include? Lib???????? Mac????? Misc???????????? Objects? PC????? pyconfig.h.in? README? Tools
[root@localhost Python-3.6.1]# ./configure? 添加配置
[root@localhost Python-3.6.1]# make????? 編譯源碼
[root@localhost Python-3.6.1]# make install???? 執行安裝
測試
轉載于:https://blog.51cto.com/tangyade/1945375
總結
以上是生活随笔為你收集整理的在Linux上安装Python3.6.1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 软件定义存储的定制化怎么走?
- 下一篇: Ibatis2到mybatis3的转变1