赞
踩
在安装python之前,首先更换像,我用的是清华镜像,当然阿里,中科大都是可以的,网上直接就可以搜到镜像路径,(请在Ubuntu系统下搜索复制,如果你在Windows下搜索到,复制到Ubuntu下是很复杂的。)
一、
sudo cp /etc/apt/sources.list /etc/apt/old_sources.list
sudo vim /ect/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get upgrade
二、python3的安装,下面的命令行,也是我从网上找的,但是第一步,出错。图二是我的历史命令行,经过历史命令行,一点一点敲,终于python3安装成功。成功之后就可以编辑python程序了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。