码迷,mamicode.com
首页 > 编程语言 > 详细

ubuntu安装python 3.7.3

时间:2019-05-07 18:20:25      阅读:416      评论:0      收藏:0      [点我收藏+]

标签:安装   python3.7   --   ons   安装python   ubuntu   mpi   tps   org   

Step 1 – Prerequsiteis

sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev     libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev

Step 2 – Download Python 3.7

cd /usr/src
sudo wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
sudo tar xzf Python-3.7.3.tgz

Step 3 – Compile Python Source

cd Python-3.7.3
sudo ./configure --enable-optimizations
sudo make altinstall

Step 4 – Check Python Version

python3.7 -V

ubuntu安装python 3.7.3

标签:安装   python3.7   --   ons   安装python   ubuntu   mpi   tps   org   

原文地址:https://blog.51cto.com/13766835/2390604

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!