Sometimes when we run pip install -r requirement.txt
in a newer system, we may encounter such an error
Actually, it's trying to warn you that continuing the execution may mess up your Python environment. Of course, with the mindset of "better safe than sorry," we still choose to directly ignore the warning and continue the execution
mkdir -p ~/.config/pip/
cd ~/.config/pip/
Then, in your preferred way, create a pip.conf
here and write the following content inside
[global]
break-system-packages = true
After that, just run pip install -r requirement.txt
again
Alright, if you find this article post helpful, give it a like, and if you are able, consider supporting it with a donation. Thank you, meow
This post is synchronized and updated to xLog by Mix Space
The original link is https://blog.nekorua.com/posts/maintain/116.html