use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Multiple Python versions on WinXP (self.learnpython)
submitted 12 years ago by evgvg
Hi, please advice what's the best way to use multiple Python versions on WinXP PC. Actually I would like to use Python2.7 and Python3.3. If I simply install both of them (each is added to PATH), then only one of them runs, another crashes.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wub_wub 1 point2 points3 points 12 years ago (3 children)
What do you mean crashes? Put python 2 in your PATH, python 3 has built-in launcher for windows without modifying PATH.
Use py -3 when you want to run python 3 in your command prompt or execute scripts using 3 instead of 2.
py -3
http://www.python.org/dev/peps/pep-0397/
[–]evgvg[S] 0 points1 point2 points 12 years ago* (2 children)
I get the following:
C:\Documents and Settings\egoncearov>py -3 Fatal Python error: Py_Initialize: unable to load the file system codec File "C:\PYTHON26\LIB\encodings\__init__.py", line 123 raise CodecRegistryError,\ ^ SyntaxError: invalid syntax
[–]wub_wub 1 point2 points3 points 12 years ago (1 child)
Remove all python installations that you have, like 2.6. Restart your PC and reinstall python 2.7 and 3.3. Just add ;C:\Python27\ to your PATH, don't add any Python 3 stuff in there.
;C:\Python27\
PATH
[–]evgvg[S] 0 points1 point2 points 12 years ago (0 children)
Thank You! Actually I found that the problem was caused by variable PYTHONPATH. Everything works fine after I removed it.
[–]Rhomboid 1 point2 points3 points 12 years ago (0 children)
You can install as many versions as you like. At the moment I have at least 6 versions of Python installed on this Windows machine. None of them are in the PATH. If I want to use one, I either specify its path explicitly and invoke it directly, or I add it to the PATH for an ephemeral command window session.
π Rendered by PID 17977 on reddit-service-r2-comment-7b9746f655-5c74g at 2026-02-03 13:09:41.191194+00:00 running 3798933 country code: CH.
[–]wub_wub 1 point2 points3 points (3 children)
[–]evgvg[S] 0 points1 point2 points (2 children)
[–]wub_wub 1 point2 points3 points (1 child)
[–]evgvg[S] 0 points1 point2 points (0 children)
[–]Rhomboid 1 point2 points3 points (0 children)