Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Computer won't let me use Python IDLE 3.4... Keeps reverting back to/installing 2.7.9?
I'm trying to teach myself Python from a book that I bought. The book teaches in Python 3, but I accidently downloaded and installed Python 2.7.9 on my computer. I deleted the Python 2 files after mistakenly downloading them and then went back and downloaded Python 3.4, however when I tried installing IDLE after that my computer kept only installing IDLE 2.7.9 and wouldn't let me install IDLE 3.4. As a result, I can only write, save, and open files using Python 2 even though I need to use Python 3. The main problem is that there are a few discrepencies between python 2 and 3 (particularly between input() and raw_input() functions) that make it very hard to learn with the wrong version running on my computer.
Are there any work arounds here? How can I get my computer running the 3.4 version of IDLE? Maybe I didn't uninstall 2.7.9 properly so it keeps bringing it back?
***Important to note that when I try to run the python programs that I've written they don't work because I'm writing in Python 3 and it seems like the computer is reading in Python 2, even outside of IDLE***
HELPPPP :( I just want to code...
1 Answer
- husoskiLv 76 years ago
You don't say which OS you're using.
On Unix/Linux, the installation usually creates symbolic links for generic versions "python2" and/or "python3", as well as specific versions like "python2.7" so you can select a specific language version at the command line. On my Raspbian distro, for example, I have python, python2, python2.7, python3 and python3.2 all defined. There are also "idle" and "idle3" commands to launch the IDE, plus some much longer names. Try "ls -l /usr/bin/idle*". Mac OSX should be similar, since it's BSD Unix under the hood.
On Windows, things are a little more complicated, and the binary installers are getting better, but are still not as flexible or particularly well-documented. For now, you might find it simpler to uninstall both 2.7 and 3.4 and then reinstall 3.4 as the only version.
Before that, though, test: On your Start menu, do you see both Python27 and Python34? If so, then you have installed Python 3 and your problem is just that it's not the default Python version. If 3.4 did NOT install, then you have other issues with your Windows setup. Make sure you do the uninstalls and the reinstall of 3.4 from an admin login.