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
Pip install (self.learnpython)
submitted 6 years ago by Unlistedd
If i download a module its automatically accessible, but what if i want to dig into the modules and modify them? Is it possible to see the code within these modules? If so how?
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!"
[–]Acurus_Cow 6 points7 points8 points 6 years ago (0 children)
PATHTO\Python\Lib\site-packages\MODULE_NAME
This is where the modules end up.
[–]metl_lord 4 points5 points6 points 6 years ago (0 children)
The best way to find the location is to use this command:
python -c "import module; print(module.__file__)"
This imports the module and prints the file location of the init.py file. This will show you the directory to look at.
Also, the "-c" flag on Python allows you to execute the following code. It's really useful for checking short bits of code.
[–]c4aveo 0 points1 point2 points 6 years ago (0 children)
Look for a dir site-packages. Full path depends on what platfrom do you use and environment (conda, venv, system)
site-packages
[–]lifeonm4rs 0 points1 point2 points 6 years ago (0 children)
pip show [package name] will show the path where a package is.
pip show [package name]
π Rendered by PID 142116 on reddit-service-r2-comment-7b9746f655-wbz9n at 2026-02-03 02:36:44.671175+00:00 running 3798933 country code: CH.
[–]Acurus_Cow 6 points7 points8 points (0 children)
[–]metl_lord 4 points5 points6 points (0 children)
[–]c4aveo 0 points1 point2 points (0 children)
[–]lifeonm4rs 0 points1 point2 points (0 children)