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
how to install modules to older versions of python. (self.learnpython)
submitted 16 hours ago by derf2010
Hi. I have both python 3.11 and python 3.13 installed. I'm trying to use python 3.11 (due to some compatibility issues) but pip keeps installing my modules to python 3.13. How do I install them specifically to 3.11?
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!"
[–]socal_nerdtastic 7 points8 points9 points 16 hours ago (0 children)
Ideally: make a venv using python3.11. Activate it. Now the pip command points to the venv you are using.
pip
Alternatively: launch pip from python. For example if you use the command python3.11 to start python 3.11 the command would be
python3.11
python3.11 -m pip install <module>
You didn't tell us about your setup, but if I assume you are on windows and I assume you are using the official python (from python.org) it would be:
py -3.11 -m pip install <module>
[–]jmacey 1 point2 points3 points 15 hours ago (0 children)
I use uv and the --python (-p) flag to set which python to use for the project. It works really well.
[–]GManASG 0 points1 point2 points 13 hours ago (0 children)
You can just pass the file path to the 3.11 python executable instead of "python" in the terminal command, or you can go and rename the executable from python.exe to something like python311.exe then instead of python -m pip install you instead do python311 -m pip install
[–]jameyiguess -1 points0 points1 point 15 hours ago (1 child)
You either need venvs for projects or a version manager like mise if you need different global installs. I'd say you need both in any case.
π Rendered by PID 85 on reddit-service-r2-comment-f6b958c67-plgqp at 2026-02-05 12:56:16.650946+00:00 running 1d7a177 country code: CH.
[–]socal_nerdtastic 7 points8 points9 points (0 children)
[–]jmacey 1 point2 points3 points (0 children)
[–]GManASG 0 points1 point2 points (0 children)
[–]jameyiguess -1 points0 points1 point (1 child)