Hello everyone! I want to install pytest
according to the documentation. The there-mentioned article about using python -m pip
instead of just pip
also states:
DO NOT install into your global Python interpreter! ALWAYS try to use an environment when developing locally!
However, when I try setting up the venv
on my Ubuntu 22.04 machine using python3 -m venv [my Exercism Python directory]
, I get:
The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt install python3.10-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.
Trying to run sudo apt install python3-venv
:
The following packages have unmet dependencies: python3-venv : Depends: python3.8-venv (>= 3.8.2-1~) but it is not going to be installed Depends: python3 (= 3.8.2-0ubuntu2) but 3.10.6-1~22.04 is to be installed Depends: python3-distutils (>= 3.8.2-1~) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
How to proceed from here? Do I even need pytest
for exercism test
or can I submit the code for testing, before submitting it for good?