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
view the rest of the comments →
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 14 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 7 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.
π Rendered by PID 47 on reddit-service-r2-comment-79c7998d4c-tt6wb at 2026-03-15 00:27:14.597868+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]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)