I wanna install the pip package command-not-found which is defined in my requirements.txt like this: command-not-found==0.3
on my Ubuntu machine but i get this error:
ERROR: No matching distribution found for command-not-found==0.3
I heard that there is an apt package python-commandnotfound
but i can’t install that too
E: Unable to locate package python-commandnotfound
I also tried apt search
with an apt update
but both returned nothing. I also am getting the same error in my GitHub Actions and at work
2
Answers
I found the problem actually it was a pretty stupid mistake 😅
The issue was that i was creating the
requirements.txt
but forgot to activate myvenv
.Thank you for the suggestions tho 👍
So always use a venv people 🫠
Please check if you are using the correct user for the command. Maybe try as an administrator.