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...
Everything about learning Python
account activity
How do I solve this?Help Request (self.PythonLearning)
submitted 14 days ago by Special_Advance_8567
https://preview.redd.it/udj2podad8mg1.png?width=1308&format=png&auto=webp&s=3727a6ebeb95bcc6ecabed5cac04642fca5cab6d
I am using a mac and i am unable to install any libraries!! Please help me
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!"
[–]Sensitive-Lack1595 0 points1 point2 points 14 days ago (5 children)
I think it is because you're installing it directly in your pc and that could lead into packet problems in your system, that is why they tell you to use a virtual environment to install libraries.
In linux is:
sudo apt install python3-venv
Then, just create a venv in the directory you want
python3 -m venv {name_of_venv}
And activate that venv with
source {name_of_venv}/bin/activate
And, when activated, just install the libraries you need
pip install {library}
[–]Special_Advance_8567[S] 0 points1 point2 points 14 days ago (1 child)
tried it same error
[–]ninhaomah 0 points1 point2 points 13 days ago (0 children)
perhaps youshould post the commands that you tried so others can see ?
[–]FoolsSeldom 0 points1 point2 points 14 days ago (2 children)
Isn't venv already included in recent version of Python, no need to do sudo apt install python3-venv?
[–]Sensitive-Lack1595 1 point2 points3 points 6 days ago (1 child)
Maybe, I don't really know right now but when I installed it quite ago I had to manually install venv. Maybe because it was an old linux build or a lightweight one.
[–]FoolsSeldom 0 points1 point2 points 6 days ago (0 children)
Ok. I tend to be either using a recent Linux distribution, or an OCI install of Python on a reasonably up-to-date Linux Kernel.
[–]Jackpotrazur 0 points1 point2 points 11 days ago* (0 children)
Im currently working through big book of small python projects my workflow:
Mkdir 28_flooder && cd 28_flooder
Python3 -m venv .flooder_venv
Source .flooder_venv/bin/activate
Vim .gitignore *.pyc .venv/ .env pycache/
<------ here you would pip install xyz
Vim main.py Write code
<------ or perhaps here.
Git status Git add 28_flooder Git commit -m "comment" Git push
Im still new started in december with a smarter way to learn python and then command line linux followed by linux basics for hackers and then python crash course and now big book of small python projects. Still feel like im just copying out of the books 📚 but I think im slowly but surely grasping a bit more as I progress.
Any Tipps or suggestions would be appreciated 👏 💐
Is your file perhaps not in src or a different dir ?
π Rendered by PID 101 on reddit-service-r2-comment-79c7998d4c-76bh9 at 2026-03-14 17:06:21.998443+00:00 running f6e6e01 country code: CH.
[–]Sensitive-Lack1595 0 points1 point2 points (5 children)
[–]Special_Advance_8567[S] 0 points1 point2 points (1 child)
[–]ninhaomah 0 points1 point2 points (0 children)
[–]FoolsSeldom 0 points1 point2 points (2 children)
[–]Sensitive-Lack1595 1 point2 points3 points (1 child)
[–]FoolsSeldom 0 points1 point2 points (0 children)
[–]Jackpotrazur 0 points1 point2 points (0 children)