LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Getting Idle for Python 3 on Fedora 18 (http://www.linuxquestions.org/questions/fedora-35/getting-idle-for-python-3-on-fedora-18-a-4175476795/)

greatbear 09-11-2013 08:07 PM

Getting Idle for Python 3 on Fedora 18
 
Hi, bit of an arcane request, but I'm looking and cannot find 'Idle' in any of Fedora's packages. Its got ipython, but that isn't the same thing. Anybody know of a Fedora package that would provide Idle for Python 3? (For Python 2 it comes standard, but it is supposedly available for Py 3 as well.)

Thank you!

Perhaps the best thing to do is somehow install python3 apart from the normal apps, so that I'm not tied to the distribution's peculiarities. Then I could perhaps install whatever I'd like to install. I'd rather just get a package with Idle already installed.

greatbear 09-11-2013 08:35 PM

Found the solution here: https://ask.fedoraproject.org/questi...-in-fedora-16/

The solution was to import the Idle module. I created a file /usr/bin/idle3 and put the following into it:

#!/usr/bin/python3

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

Then I used chmod to add execution rights. I was able to run Idle in Python 3 from a standard user profile.

John VV 09-12-2013 03:57 AM

just be VERY VERY careful
do NOT replace the default version of python yum and parts of Gnome NEED that exact version

a second version can be installed side by side , but use caution


All times are GMT -5. The time now is 01:23 PM.