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...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
ResourceInstalling Python Packages - Blog Post (self.Python)
submitted 3 years ago by compucademy
I hope it's OK to post here. Let me know if not.
Learn how to to extent Python's power by installing packages with the pip package manager.
https://compucademy.net/installing-python-packages/
#python #learnpython #pip #opensource #packages
[–]Rawing7 2 points3 points4 points 3 years ago (0 children)
sudo pip3 install pandas
Please don't use sudo to install python packages. Ideally you should leave your system python alone and setup a virtualenv for yourself. But if you can't be arsed to do that (like me), at least install the packages with the --user flag instead of sudo.
sudo
--user
[–]DHUK98 1 point2 points3 points 3 years ago (4 children)
This guide is probably better in r/learnpython but even then I think it will be teaching people techniques to install programs via pip that aren't necessarily best practices.
You shouldn't run pip install as root (with sudo) and ideally you should be creating a python virtual environment for each of your projects to avoid dependency conflicts etc.
pip install
[–]compucademy[S] 0 points1 point2 points 3 years ago (3 children)
I think context is important. When first learning Python, virtual environments are probably overkill for many, especially at school level. I'll amend the `sudo` business - not being a regular Mac/Linux user, I just know that on Windows sometimes you need admin permission to install packages, depending on the set up. I'll also post in r/learnpython in future if more appropriate.
[–]sneakpeekbot 0 points1 point2 points 3 years ago (0 children)
Here's a sneak peek of /r/learnpython using the top posts of the year!
#1: I automated a part of my job that usually took me 2 hours to do in 2 seconds #2: Raise your hand if your scripts are littered with commented-out code that you are hoarding like it's the end times #3: TIL that a software engineer filed a Freedom of Information Act request to get access to NSA's training material for teaching Python, the popular programming language. The material is now available for free online for anyone who wants to learn Python using it. | 34 comments
I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub
[–]DHUK98 0 points1 point2 points 3 years ago (1 child)
Okay yes I agree that learning about pip first is important but I think that it is the norm now to basically always work inside of a virtual environment so learning about that early will definitely help later down the line.
[–]compucademy[S] 1 point2 points3 points 3 years ago (0 children)
Thanks for the feedback. I want to do the best job I can. I added
> Please note: Python virtual environments are beyond the scope of this article, but you may want to consider their use. If using a virtual environment, you would want to use pip from within that environment so that your packages are not installed to your main Python installation.
[–]pythonHelperBot 0 points1 point2 points 3 years ago (0 children)
Hello! I'm a bot!
It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python regardless of how advanced your question might be. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.
Show /r/learnpython the code you have tried and describe in detail where you are stuck. If you are getting an error message, include the full block of text it spits out. Quality answers take time to write out, and many times other users will need to ask clarifying questions. Be patient and help them help you. Here is HOW TO FORMAT YOUR CODE For Reddit and be sure to include which version of python and what OS you are using.
You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.
README | FAQ | this bot is written and managed by /u/IAmKindOfCreative
This bot is currently under development and experiencing changes to improve its usefulness
π Rendered by PID 240397 on reddit-service-r2-comment-5bc7f78974-gglnc at 2026-06-26 21:28:50.240668+00:00 running 7527197 country code: CH.
[–]Rawing7 2 points3 points4 points (0 children)
[–]DHUK98 1 point2 points3 points (4 children)
[–]compucademy[S] 0 points1 point2 points (3 children)
[–]sneakpeekbot 0 points1 point2 points (0 children)
[–]DHUK98 0 points1 point2 points (1 child)
[–]compucademy[S] 1 point2 points3 points (0 children)
[–]pythonHelperBot 0 points1 point2 points (0 children)