#πŸ”’ pip install pytest failure

49 messages Β· Page 1 of 1 (latest)

muted sage
#

Message was too long with the fill error, so I attached the error as a text file.

pip --version returns pip 24.3.1 from /home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip (python 3.14), so I know it's installed in the venv I'm using. To be sure I ran $ sudo dnf install python3-pip, and tried to install pytest in my active venv, and got the same error as above.

What do I do to fix this?

jagged roostBOT
jagged roostBOT
#

@muted sage

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ripe gust
#

@muted sage do you have ca-certificates installed?

muted sage
#
(bash) dev@DrKnow4:~$ ca-certificates --version
bash: ca-certificates: command not found...
(bash) dev@DrKnow4:~$ ca-certificates --help
bash: ca-certificates: command not found...
winged peak
ripe gust
ripe gust
winged peak
#

I'm concerned because of the $ pip install pytest though

#

Cause he also says he ran $ sudo dnf install python3-pip which you usually don't need to do (if you want to run pip through a venv)

muted sage
#

Yes, I'm in a venv called bash. It's showing as active in my terminal:
(bash) dev@DrKnow4:~$

muted sage
ripe gust
#

@muted sage what is the pip --version?

muted sage
ripe gust
muted sage
#

Oh geeze. Does that mean I run pip install certifi?

ripe gust
#

please run: pip install --upgrade pip setuptools wheel first

muted sage
ripe gust
#

hmmmm, can you do pip install --upgrade pip --force-reinstall @muted sage

muted sage
#

Same error again.

ripe gust
#

try appending --no-cache-dir

muted sage
#

Same error

ripe gust
#

@muted sage can you delete python3-pip, and switch to uv?

#

that would be the easiest

muted sage
#

Would that be pip uninstall pip, then python3 install uv?

#

Wait no I found the curl command

ripe gust
#

you can download uv from you package manager, although I'm worried it will be outdated too

muted sage
#

pip uninstall pip isn't working, gives a long error message

#

Got fed up and created a bash2 venv. Guess what just installed successfully?

#
(bash2) dev@DrKnow4:~$ pytest --version
pytest 9.0.3
#

🫠

ripe gust
#

@muted sage was the first venv created a long time ago?

muted sage
#

Yes, prior to Fedroa 43 -> 44 upgrade, but I don't remember eactly when.

ripe gust
#

use uv, you'll thank your past self

muted sage
#

Will have to look into that. Thanks!

#

Followup question: is unittest included in python3 by default? I can't seem to get a version when I run unittest --verion

muted sage
ripe gust
muted sage
#

Ah, gotcha

ripe gust
#

it's already included, just do import unittest

muted sage
#

Thank you so much

jagged roostBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.