ubuntu下如何进行python2.7 的IDLE安装和源更新

发布时间:2021-10-14 14:02:28 作者:柒染
来源:亿速云 阅读:166

本篇文章为大家展示了ubuntu下如何进行python2.7 的IDLE安装和源更新,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

在用software center装IDLE时 出错

details 说python2.7-tk是虚拟的包什么的  不懂..

于是用 sudo app-get install python2.7-tk

发现   几个 depended on xx

少什么就安装什么

sudo app-get install xx

于是发现问题

Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

sudo apt-get upda了两次都是同样的问题

想想应该是源的问题  最近好像改过

于是

sudo gedit /etc/apt/sources.list

发现我的版本是trusty  结果用的  raring

果断ctrl+H  replace之

哦了..

对了一般都会备份..  sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

之后别忘了 sudo apt-get update

附上源地址(直接拷贝进sources.list即可)

##sohu
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

##wangyi163
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

##alicloud
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

顺便看了一下ubuntu的版本

名字都非常有意思哦~

版本号代号发布时间
14.04 LTSTrusty Tahr2014/04/18
13.10Saucy Salamander2013/10/17
13.04Raring Ringtail2013/04/25
12.10Quantal Quetzal2012/10/18
12.04 LTSPrecise Pangolin2012/04/26
11.10Oneiric Ocelot2011/10/13
11.04(Unity成为默认桌面环境)Natty Narwhal2011/04/28
10.10Maverick Meerkat2010/10/10
10.04 LTSLucid Lynx2010/04/29
9.10Karmic Koala2009/10/29
9.04Jaunty Jackalope2009/04/23
8.10Intrepid Ibex2008/10/30
8.04 LTSHardy Heron2008/04/24
7.10Gutsy Gibbon2007/10/18
7.04Feisty Fawn2007/04/19
6.10Edgy Eft2006/10/26
6.06 LTSDapper Drake2006/06/01
5.10Breezy Badger2005/10/13
5.04Hoary Hedgehog2005/04/08
4.10(初始发布版本)Warty Warthog2004/10/20
Ubuntu历史版本一览表

上述内容就是ubuntu下如何进行python2.7 的IDLE安装和源更新,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. 使用ubuntu18.04LTS部署opesntack tranning labs进行测试
  2. Windows下怎么安装、换源和更新Anaconda

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

python ubuntu idle

上一篇:有哪些顶级开发工具

下一篇:如何实现点击Button按钮时将数据插入数据库中

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》