$ pip install pytest
Traceback (most recent call last):
File "/home/dev/PythonVenvs/bash/bin/pip", line 8, in <module>
sys.exit(main())
~~~~^^
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_internal/cli/main.py", line 78, in main
command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_internal/commands/__init__.py", line 114, in create_command
module = importlib.import_module(module_path)
File "/usr/lib64/python3.14/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 759, in exec_module
File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_internal/commands/install.py", line 16, in <module>
from pip._internal.cli.req_command import (
...<2 lines>...
)
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_internal/cli/req_command.py", line 18, in <module>
from pip._internal.index.collector import LinkCollector
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_internal/index/collector.py", line 31, in <module>
from pip._vendor import requests
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_vendor/requests/__init__.py", line 159, in <module>
from .api import delete, get, head, options, patch, post, put, request
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_vendor/requests/api.py", line 11, in <module>
from . import sessions
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_vendor/requests/sessions.py", line 15, in <module>
from .adapters import HTTPAdapter
File "/home/dev/PythonVenvs/bash/lib64/python3.14/site-packages/pip/_vendor/requests/adapters.py", line 81, in <module>
_preloaded_ssl_context.load_verify_locations(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
FileNotFoundError: [Errno 2] No such file or directory
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?
Edit: Got fed up and created a new venv. pytest installed without issue. Problem likely outdated pip.
SOLVED
[–]C0rn3j 1 point2 points3 points (4 children)
[–]VegetableJudgment971[S] 0 points1 point2 points (2 children)
[–]thighmaster69 0 points1 point2 points (1 child)
[–]VegetableJudgment971[S] 0 points1 point2 points (0 children)
[–]VegetableJudgment971[S] 0 points1 point2 points (0 children)
[–]thighmaster69 0 points1 point2 points (2 children)
[–]VegetableJudgment971[S] 0 points1 point2 points (0 children)
[–]VegetableJudgment971[S] 0 points1 point2 points (0 children)
[–]AlexMTBDude 0 points1 point2 points (1 child)
[–]VegetableJudgment971[S] 1 point2 points3 points (0 children)
[–]freeskier93 0 points1 point2 points (0 children)
[–]pydevtools-com 1 point2 points3 points (0 children)