首页 > 编程语言 > 详细

ubuntu中如何安装python3.6

时间:2017-11-05 14:56:58      阅读:361      评论:0      收藏:0      [点我收藏+]

此处使用命令行方式来安装Python3.6:

  1. sudo wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz 
  2. sudo tar xJf Python-3.6.0.tar.xz
  3. sudo cd Python-3.6.0 
  4. sudo ./configure 
  5. sudo make && make install 

检查是否安装成功,运行以下命令:

#which python3

输出:#/usr/local/bin/python3

#python3 -V

输出:Python 3.6.0

 

对于permission denied解决方法:

sudo chmod a+x /xxx/xxx

Then try to clean the make and do it again:
sudo make clean

sudo ./configure

sudo make && make install

ubuntu中如何安装python3.6

原文:http://www.cnblogs.com/hujianglang/p/7787375.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!