linux-mint18 (ubuntu 16) 安装python3

直接执行命令:

sudo apt-get install python3

将python3设置为默python版本:

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
时间: 2024-08-28 10:51:55

linux-mint18 (ubuntu 16) 安装python3的相关文章

在 ubuntu 中安装 python3.5 tornado pymysql

一.在 ubuntu 中安装 python3.5 1.首先,在系统中是自带python2.7的.不要卸载,因为一些系统的东西是需要这个的.python2.7和python3.5是可以共存的. 命令如下(已经在阿里云的ubuntu中测试): apt-get install Python-software-properties apt-get install software-properties-common sudo add-apt-repository ppa:fkrull/deadsnake

在 ubuntu 中安装 python3.5、 tornado、 pymysql

一.在 ubuntu 中安装 python3.5 1.首先,在系统中是自带python2.7的.不要卸载,因为一些系统的东西是需要这个的.python2.7和python3.5是可以共存的. 命令如下(已经在阿里云的ubuntu中测试): apt-get install Python-software-properties apt-get install software-properties-common sudo add-apt-repository ppa:fkrull/deadsnake

Linux下原码安装 python-3.6.6

Linux下原码安装 python-3.6.6 下载 # wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz 安装依赖包 # yum -y install zlib-devel bzip2-devel openssl-devel sqlite-devel readline-devel gcc 解压并进入到解压目录 # tar xvf Python-3.6.6.tgz # cd Python-3.6.6/ 修改 Modules

Linux(Ubuntu 16.04)中安装OpenCV + OpenCV_Contrib

近两个月来接触了Linux系统,在老板的建议下翻了Ubuntu的牌子,我安装的版本是16.04,用习惯之后感觉蛮好的,比Windows要强.好啦,废话不说啦,下面开始说在Ubuntu中安装OpemCV+OpenCV_Contrib. 首先,准备一下开发环境: Ubuntu 16.04 64位 cmake ant jdk git python 接下来,从github中down下OPenCV + OpenCV_Contrib库,可以从https://github.com/opencv上下载(注意版本

linux mint18 cinnamon 64bit 安装 docker

参考官方文档:https://docs.docker.com/engine/installation/linux/ubuntu/ 1. 安装一些使 apt 可以使用 https 的源 sudo apt-get install -y --no-install-recommends \ apt-transport-https \ ca-certificates \ curl \ software-properties-common 2. 添加docker 官方 GPG key: curl -fsSL

Ubuntu下安装Python3.4

转自:http://blog.sina.com.cn/s/blog_7cdaf8b60102vf2b.html 1. 通过命令行安装Python3.4,执行命令:sudo apt-get install python3.42. 由于Ubuntu底层采用的是Python2.*,Python3与Python2是互不兼容的,但是不能卸载Python2,只需要将默认的Python指向Python3即可.    之前安装的Python3.4默认是安装在/usr/local/lib/python3.4目录下

Ubuntu下安装Python3.4及用python编译py文件

1.安装python 3.4程序 sudo apt-get install python3.4 2.python 3.4是被默认安装在/usr/local/lib/python3.4,删除默认pythonlink文件/usr/bin/python,重新建立连接关系 sudo rm /usr/bin/python sudo ln -s /usr/bin/python3.4 /usr/bin/python 3.确认python 版本 python 输入quit()退出,如果显示是python3.4版

Ubuntu 16——安装——ns2.35和nam

Ubuntu 16.04 安装ns2.35+nam 总结出以下安装步骤 1: 更新源 sudo apt-get update #更新源列表 sudo apt-get upgrade #更新已经安装的包 sudo apt-get dist-upgrade #更新软件,升级系统2:安装ns2需要的包 sudo apt-get install build-essential sudo apt-get install tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev #for tcl

ubuntu中安装python3和pip

python3: 在ubuntu的包中,python的二代和三代版本的命名:二代:python,三代:python3 安装python3: sudo apt install python3 同理:pip也要对应安装的python版本,三代对应:python3-pip 安装pip: sudo apt install python3-pip 注意:这时安装完毕后的pip真实地址是: /usr/bin/pip3 ,也就是说,要用pip3这个命令去查看是否安装成功: pip3 --version 可以用