惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - AnewR

话说最近更新的好快 无题 从三月到四月 无题 cmangarobot zxmh.net 的漫画下载 懒人的漫画下载工具[0.1] 懒人的漫画下载工具[基本能用版] 我要工作了 daily 9.29 八月 七月 ZOJ 200 超 我也酷他一把——EMACS + GDB 小试牛刀 自动登录DISCUZ,发帖的代码(部分) 最近一直在自己写的ChuanDaily上写东西 庆幸:软设考过了 关于那个快速启动的控制台小程序 无聊的练习编程
hello,idle
AnewR · 2007-01-05 · via 博客园 - AnewR

  这是一次惨痛的过程,然而最后当我完成的时候,一切痛苦都不复存在了。

  话说三天前:
  在各个教程上号称python入门级IDE的idle,我怎么就不能用呢?
  先是在usr/bin等下找不到idle,于是来了个find / -name idle*,在python安装路径下找到了一个叫idle.py的,然后python idle.py 提示:IDLE can't import Tkinter.  Your Python may not be configured for Tk.
妈的,这个tk是什么鸟东西,上网一查,发现tcl/tk好像是一个图形接口,还有个tkinter什么的,于是上网GOOGLE这两个东西。无奈海底电缆让电信的网速如龟,半天下不下来。乱七八糟搜了一通,找到一大堆在windows下idle的用法,靠,win下还用你教么。
  没办法,似乎有个叫eclipse的可以用,接下来弄了个eclipse+pydev(又是搜了半天),居然可以用,idle放一边也。
  然后在eclipse下折腾了两天,把那个保存ZOJ题目的第一个python程序蒙出来了。

  然后考虑做一个后院灌水机器人,查了半天,没编出来(cookiejar通不过检验,到现在还没有弄好),却有莫名其妙的搞起了cgi,用emacs写了几个cgi发现没有函数提示怎是不愉快,而eclipse是在是太慢了,慢的让我抓况(BS java)。后来一因为一个编码问题到XP下装了个python2.5,体验到“最适合初学者的idle的便捷之后“,又打算在fc下装idle。
  接下来又是一天左右的google,啥网都上了,下了一大堆东西,也没搞好,到最后拉了个PYTHON2.5回来,编译安装,还是不行。
  没办法,只能硬着头皮看官方网站了,在tkinter网站上看到:
If it fails with "No module named _tkinter", your Python configuration needs to be modified to include this module (which is an extension module implemented in C). Do **not** edit Modules/Setup (it is out of date). You may have to install Tcl and Tk (when using RPM, install the -devel RPMs as well) and/or edit the setup.py script to point to the right locations where Tcl/Tk is installed. If you install Tcl/Tk in the default locations, simply rerunning "make" should build the _tkinter extension.

  大致估计到是这个tcl/tk出问题了,用FC的安装盘,rpm tkinter,提示说有两个什么xxxtkxxx.so找不到,我也不知道这是什么东西,就蒙着把什么tk*rpm给装上去了,接下来有装了个什么tcl*,嘿嘿,tkinter装上去了。马上./configure make make install make clean,执行idle,猜猜看发生了什么?

"IDLE can't import Tkinter.  Your Python may not be configured for Tk."

爽吧。

一火有上tcl/tk网站去看看,弄了半天没看出什么名堂。到1点了,睡觉。

第二天,刚上完课就急急忙忙回来,继续看这个东东,发现最新的tcl/tk也不过8.5.*,fc自带的都是8.4.*,估计不是这个问题。恰好有在一个老外的论坛上看到类似的情况,回复里有人提到什么devel什么的,盘里一查,果然有个tk-devel-*,把这种tcl,tk,tkinter,devel全部rpm了,make,make install,idle

好了