Ask Your Question

Can't run Python3 IDLE in Fedora 16

asked 2011-11-11 08:04:20 -0500

ThE1OnE gravatar image

updated 2011-12-03 14:55:45 -0500

mether gravatar image

Hi guys,

I want to run Python's IDLE. Python3 and python-tools are already installed. When I run python /usr/lib/python3.2/idlelib/ it gives me this error:

Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named run

How can I fix this? Thank you!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-11-11 08:29:03 -0500

asto gravatar image

Create a file /usr/bin/idle3 with these contents


from idlelib.PyShell import main
if __name__ == '__main__':


# su -c 'chmod +x /usr/bin/idle3'

Now all you have to do is enter "idle3" at the command line and idle will start up on python3

You might have to also do this if you get an error about tkinter

# su -c 'yum -y install python3-tkinter'
edit flag offensive delete link more

answered 2012-10-08 13:10:07 -0500

dmalcolm gravatar image

Which version of python3-tools were you using?

Note that "python" in Fedora means Python 2; running

python /usr/lib/python3.2/idlelib/

is erroneous, since it's attempting to run Python 3 code with the Python 2 interpreter. There are enough differences between the versions of Python that there's no guarantee that that Python 3 script is even syntactically valid Python 2 code.

To run IDLE for Python 3, python3-tools provides a /usr/bin/idle3.2 for Python 3.2 (or 3.3 for Fedora 18 onwards). This has the content:


from idlelib.PyShell import main
if __name__ == '__main__':

though you shouldn't need to know that; it's packaged as part of the rpm.

So you should simply run:

$ idle3.2

and it should have just worked.

Should there be a "/usr/bin/idle3" as well?

Hope this is helpful

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2011-11-11 08:04:20 -0500

Seen: 4,880 times

Last updated: Oct 08 '12